Errata

Learning Perl

Errata for Learning Perl

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page xiii
IN PRINT: footnote, second sentence

"...that lept from..."

NOW READS:
"...that leapt from..."

p. 21, second to last paragraph, ending of last sentence previously read
"...can't recall whay you did what you did three months ago)."

NOW READS:
"...can't recall why you did what you did three months ago)."

Anonymous    Feb 01, 2004
Printed
Page 25
first sentence after heading Automatic Conversion Between Numbers and Strings

"...converts between numbers to strings as needed."

NOW READS:
"...converts between numbers and strings as needed."

p. 29, Fourth paragraph, first sentence;
"Another common assignment operator is the string concatenate operator".

NOW READS:
"Another common assignment operator is made with the string concatenate operator".

p. 33, First paragraph under "Comparison Operators".
The following sentence HAS BEEN ADDED to the end of the paragraph:
"So, if you get writers' block, just let the cat walk across the keyboard, and debug what results."

p. 46, second footnote, third line from bottom of page:
" ...rewrite it straightforward in Perl..."

NOW READS:
" ...rewrite it straightforwardly in Perl..."

p. 54, fourth paragraph under "<STDIN> in List Context", second sentence:
"It turns out that if you give chomp a list of lines, it will remove the newlines
from each item in the list."

NOW READS:
"It turns out that if you give chomp an array holding a list of lines, it will
remove the newlines from each item in the list."

Anonymous    Feb 01, 2004
Printed
Page 30
second line up from the bottom of the page (in the code)

the line reads:
print "The name is $fred.
"; # prints a dollar sign

however, this will print "$fred." not just the $ all by itself

same with the next line - print 'The name is $fred'. "
";

Anonymous   
Printed
Page 47
7th Paragraph

In the examples under "The shift and unshift operators":
unshift @array, 4; # @array now has (4, 5);

Extra semi-colon removed. NOW READS:
unshift @array, 4; # @array now has (4, 5)

Anonymous    Oct 01, 2003
Printed
Page 59
3rd paragraph,last sentence says

The term void context is just a fancy of saying that the answer

NOW READS:
The term void context is just a fancy way of saying that the answer

p. 83, third paragraph, first sentence:
It's easy to see whether an element of the hash is true or false, do this:

NOW READS:
It's easy to see whether an element of the hash is true or false; do this:

p. 101, sentence ending the first paragraph;
...even zero times."

NOW READS:
...even zero times" (because * is the "times" operator in multiplication).

p. 108, last paragraph. The line break in "w-type" HAS BEEN ALTERED so that the
command doesn't appear hyphenated.

p. 117, second footnote, a space HAS BEEN ADDED between $_ and the following word.

p. 119, second from last paragraph, second and third sentences;
Notice that there's no comma in the output (because the comma is outside of
the memory parentheses). That leaves the comma out of memory two.

NOW READS:
Notice that there's no comma in the output. Because the comma is outside of
the memory parentheses in the pattern, there is no comma in memory two.

p. 124, third line, the capital S in the middle of the word "as" HAS BEEN DELETED.

Anonymous    Feb 01, 2004
Printed
Page 61
2nd paragraph

Variable name $a HAS BEEN REPLACED with $fred
variable name $b HAS BEEN REPLACED with $barney.

p. 86, last line of last code example, the left curly brace
HAS BEEN CHANGED to a right curly brace.

p. 114, exercise 8-4. "thought" and "was" HAVE BEEN CHANGED to "think" and
"is", respectively, in the third and fourth sample strings (for a total of four changes).
That is, the second sample sentence NOW READS, "I think that that is
the problem", and the third NOW READS, "I think that that that is the
problem".

Anonymous    Oct 01, 2003
Printed
Page 103
right before "Exercise:"

"If you pattern matches something..."

NOW READS:
"If your pattern matches something..."

Anonymous    Jun 01, 2004
Printed
Page 113
footnote

YAPE::Regexp::Explain
should be
YAPE::Regex::Explain

Anonymous   
Printed
Page 158
3rd code fragment

body of foreach:
push @big_old_files, $_

NOW READS:

push @big_old_files, $filename

Anonymous    Oct 01, 2003
Printed
Page 170
IN PRINT: 2nd paragraph of "An Alternate Syntax for Globbing"

"The value between the angle brackets is interpolated similar to a..."

NOW READS:
"The value between the angle brackets is interpolated similarly to a..."

Anonymous    Feb 01, 2004
Printed
Page 171
last example

The first line of the example creates a variable named $dir_to_process.
However, the rest of the example used a variable named $dir.

The three instances of $dir HAVE BEEN CHANGED to:
$dir_to_process.

Anonymous    Oct 01, 2003
Printed
Page 177
3rd pharagraph

"...and the right part is a double-quotish string."

NOW READS:
"a double-quoted string."

p. 188, the code example line (with "my $betty") has a comment. There was an
unfortunate line break in the comment, so that the phrase "(not shown)"
appeared to be uncommented.

The code example NOW READS:

my $betty = &dirname($wilma); # uses our own subroutine &dirname
# (not shown)

Anonymous    Oct 01, 2003
Printed
Page 179
IN PRINT: 3rd sentence from the top

"...Barney uses the Perl's link function..."

NOW READS:
"...Barney uses the Perl link function..."

p. 203 (and the corresponding entry on page viii), the heading "Getting
Down and Dirty with Fork".

NOW READS:
"Getting Down and Dirty with fork"

Anonymous    Feb 01, 2004
Printed
Page 194
1st paragraph, 3rd line

The example of the system command:
system 'for in *; do echo == $i ==; cat $i; done';

NOW READS:
system 'for i in *; do echo == $i ==; cat $i; done';


Anonymous    Oct 01, 2003
Printed
Page 205
IN PRINT: First code sample, fourth line from the bottom

"...maybe somone presses..."

NOW READS:
"...maybe someone presses..."

p. 226. Line break problem in the footnote
"perl-func manpage"

NOW READS:
"perlfunc manpage"

Anonymous    Feb 01, 2004
Printed
Page 221
2nd paragraph, first sentence

"thas has"

NOW READS:
"that has"

Anonymous    Jun 01, 2004
Printed
Page 224
2nd line

by Tom Chrisitansen and Nathan Torkington

NOW READS:
by Tom Christiansen and Nathan Torkington

Anonymous    Jun 01, 2004
Printed
Page 246
Figure 17-2

The brackets ([]) in the figure HAVE BEEN CHANGED to braces ({}).

Anonymous    Mar 01, 2004
Printed
Page 261
footnote for exercise 5 of chaper 7

The footnote previously read:
"Folks who know about the logical-and operator, which we saw in Chapter
10, could do both tests /fred/ and /wilma/ in the same if conditional.
That's more efficient, more scalable, and an all-around better way than
the ones given here. But we haven't seen logical-and yet."

The first sentence NOW READS: "Folks who know about the logical-and
operator, which we'll see in Chapter 10, ..."

Anonymous    Feb 01, 2004
Printed
Page 261
footnote for exercise 5 of chaper 7

"Folks who know about the logical-and operator, which we saw in Chapter
10, could do both tests /fred/ and /wilma/ in the same if conditional.
That's more efficient, more scalable, and an all-around better way than
the ones given here. But we haven't seen logical-and yet."

The first sentence NOW READS: "Folks who know about the logical-and
operator, which we'll see in Chapter 10, ..."

Anonymous    Mar 01, 2004
Printed
Page 272
IN PRINT: 3rd paragraph, 2nd sentence

"...that's handled by the uncommenting the..."

NOW READS:
"...that's handled by uncommenting the..."

p. 273, at the end of the explanation for exercise 13-3:
The word "line" HAS BEEN CHANGED to "statement"

Anonymous    Feb 01, 2004