Learning Perl, 2nd Edition by Randal Schwartz and Tom Christiansen Here are the changes made in the 4/99 reprint: <24> Added parantheses: chomp ($word; Now reads: chomp ($word); {29} Line 17 used to read: "can't rename $filename.old" It now reads: "can't rename $filename". (33) In the paragraph under Single-Quoted Strings, changed "single-quoted string" in the second-to-last sentence to "double-quoted string." <39> Added three lines to table 2-3: Left << >> Nonassociative < > <= >= lt gt le ge Nonassociative == != <=> eq ne cmp {43} Changed \ in last footnote to: Or whatever the input record separator $/ is set to. {49} Changed last line of code to: print ("The answer is ", @a,"\n"); {49} Changed $a to @a in the last paragraph. {69} The values Function, paragraph 1, lines 1-3: %arrayname has been changed to %hashname in 3 places. {70} In the 5th paragraph in "Hash Slices" section, line of code used to read: @league{keys %score} = values %score; It now reads: %league{keys %score} = values %score; {90} The second example from the bottom used to read: $result = (join "+", "", @fields); Moved parantheses, so it now reads: $result = join ("+", "", @fields); {97} 2nd code sample: line 10 used to read: @result; # return the final list It now reads: return@result; # return the final list {121} Format, line 2: "cool" has been replaced by "pretty" in 3 places. {130} In the first snippet of code: "/dev/hosts" has been changed to "/etc/hosts" {136} In the 1st paragraph: "File::Find" has been changed to "File::Copy" {139} In the foreach loop example: warn "hmm... couldn't chmod $file.\$!"; Now reads: warn "hmm... couldn't chmod $file: $!"; (164) In the third paragraph, changed last sentence before code. The text used to read: ...into an array with the following values: It now reads: ...into a list with the following values: {187} Changed import tag ":html3": removed "proposed." {187} In the program at bottom of page, line 5: h1("Hello World") now reads h1("Greetings, Terrans!"). {201} 2nd code block, lines 3 and 4: "$CHATFILE" now reads "$CHATNAME" {207} 2nd code example, line 9 use to read: "$result->title" Now reads: "$webdoc->title" {215} 2nd para. used to read: "because that element has been printed" Now reads: "because that element has been popped" {232} #1, sub by_last: $last{a} now reads $last{$a}. (233) In the first paragraph, line 3, changed "chomps" to "chops" {238} Paragraph 1, line 2 now reads: Deleted Modules new to 5.004 are marked like this. {252} Other Operators, paragraph 1, line 2 used to read: "?\ :" It now reads: "? :". {252} Many, Many More Functions, grep and map, map examples, line 3, comment: "unchop" now reads "unchomp"