This is the errata file for the first edition of "Learning Perl." It will be updated as we become aware of problems. If you find an error that is not listed here, please send email to: bookquestions@ora.com. page xxii get examples and quit are user input and should be written in bold type page xxii get examples should be get examples.tar.Z page xxii Follow instructions should be zcat examples.tar.Z | tar xf- xof- if system V page 15 0} else { should be } else { page 15 Regex footnote s/(\S).*/\L$1/ should be /(\S*).*/\L$1/ page 18,20 $original_name should be $name page 25 $password[5]; should be $password[6]; page 25 "The sixth item of the @password array (subscript 5)..." should be "The seventh item of the @password array (subscript 6)..." page 25,32 Hello, $original_name should be Hello, $name page 36 sentence in the second paragraph that reads: "(Data that is read from or written to files is not treated similarly, but not identically.)" should be "(Data that is read from or written to files is treated similarly, but not identically.)" page 37 FF octal should be FF hex page 41 greater than or equal to gt should be ge page 43 2 ** 3 ** 4 # 2 ** (3 ** 4), or 2 ** 12, or 4096 should be 2 ** 3 ** 4 # 2 ** (3 ** 4), or 2 ** 81, or approx 2.41e24 page 57 $fred[1] +=4; #add 4 to the third element should be $fred[1] +=4; #add 4 to the second element page 62 $all = "Now for @fred[@fred[4,5]]"; # same thing should be $all = "Now for @fred[@fred[4,5]] here!"; # same thing page 76 force %fred empty should be force %lastname empty page 76 #keep looping until we have less than 10 elements should be #keep looping while we have less than 10 elements page 90 /\b+\b/ should be /\b\+\b/ page 90 "/fred\b/; matches fred, but not freed" should be "/fred\b/; matches fred" page 94 "I'll show you in the 'Substitutions section, below, how to alter the string so that regular expression pattern matching characters get turned off." should be deleted page 95 2nd paragraph, "The result is a list of values from $1 ..." should be 2nd paragraph, "The result is a list of values that would have been set for $1" page 95 3rd paragraph, "In this case, that the $1 and $2 variables are not altered." should be "Note that the $1 and $2 variables are not altered." page 118 ....file!" should be .....file!\n" page 120 in the table -O differs from -O should be -O differs from -o page 143 close(ETC) should be closedir(ETC) in two places page 152 time + 20*60*60 should be time+20*60 page 179 @keys = sort {........} keys %login should be @keys = sort {........} keys %home page 181 ($val1,$val2) = unpack("11", "ABCDEFGH"); should be ($val1,$val2) = unpack("11", "abcdefgh"); page 187 .....open... should be ......dbmopen... page 197 The greek letter "pi" is missing inside the parentheses of "First, we give a constant value () to" page 198 the third line adds the two numbers should be the third line multiplies the two numbers page 207 , we get $names{"- should be , we get $names{"Fred"} back cover foreword is misspelled Although the Camel (Programming Perl) and Llama (Learning Perl) books precedence charts differ, it is the Camel book that is in error, not the Llama book. The Camel chart will be fixed at the next Camel rewrite. updated 07/13/94 mk