Errata for Beginning Perl   [ISBN: 1-861003-14-5]

Wrox Logo
ChapterPageDetailsDatePrint Run
 0 Incorrect description of V template for pack()
In Appendix C (page 552) the V template for the function 'pack()' is described as corresponding to:

"A big-endian long (32-bit) value."

This is incorrect, and should read:

"A little-endian long (32-bit) value."

12-Sep-001
 0 Index misnumbering
Index entries for pages 552-564 are misnumbered by 1-2 pages.
12-Sep-001
 0 Can't run perl from the DOS prompt
Some readers have reported problems executing Perl from the DOS prompt. This is usually because the directory path to the perl executable has not been added to the PATH environment variable. Instructions for doing so are given on page 202.
12-Sep-001
 47 Missing newline character
This errata was supplied by Paul Harwood. The original example is: Print 3 + 7 * 15, "\n"; The corrected example below should include the "\n" in it which is missing.
03-Oct-021
259 Incorrect range operator
The second bullet under the "Operators To Be Seen Later" title should read:
The range operators, .. and ..., make a range of values.
instead of:
The range operators, ... and ..., make a range of values.

11-Mar-031
268 Typo
A typo on the 2nd line of the 1st paragraph
the sentence:
mention a variable, sa,y $name ...
should be:
mention a variable, say, $name ...

11-Mar-031
3108 Typo in Output
The example, badhash1.plx should not print out "Lucy lives in Exeter" after the "Exeter" was deleted. The line should actually be: "Lucy lives in "
24-Feb-031
 192 Error in code listing
Line 9 of the listing for sort.plx should end:

die "Couldn't open file $output: $!\n";
14-Nov-001
6205 Incorrect file name
In the Inventory.plx program, on line 16, Instead of calling sort.plx(page 192), use sort3.plx(page 195). This is bacause there is no provision for the event (in sort.plx) that no filename is given on command line.
25-Feb-031
 207 Missing caret sign
Change "$item =~ s/ (\w+) /$ls/ unless $item =~ /\w+s\b/;" to "$item =~ s/^(w+) \b/$ls/ unless $item =~ /^\w+s\b/;"
02-Aug-021
7237 Parantheses needed
On the line: Print "Give me a name:"; chomp $name =<>; there is an error, it should actually be: "Give me a name:"; chomp ($name =<>); This is true for all the sunsequent statements containing "chomp" variable.
24-Feb-031
 253 Typo
should be "{$filename}" instead of "{filename}"
30-May-021
13435 Missing code file
This is regarding the missing demo.dbm file in the code download for this book. Since this particular sample file is not available in the code bundle, you could instead use some other sample DBM database file to run the code. You could also create a sample DBM database following the instructions on page 437 and use this file in the code.
29-Nov-021
 496 Typo
should be "inet_ntoa()" instead of "inet_nota()"
30-May-021