Programming Perl, Second Edition by Larry Wall, Tom Christiansen, and Randal Schwarz Here are the changes that were made for the 8/98 reprint: {77} table row 1, column 2: "." changed to ".." {89} line 5 changed to if ( ("fred" & "\1\2\3\4") =~ /[^\0]/ ) { ... } {144} list item 4, "Filehandles, files and directories": add "select (output filehandle)" and "select (ready file descriptors)" (152) closedir : "See the examples under opendir." "opendir" changed to "readdir". {230} code sample 2: line 9, elsif ($rc > 0x80) changed to elsif (($rc & 0xff) == 0) { code sample 2,last line, $ok = ($rc != 0); changed to $ok = ($rc == 0); {241} 1st text para. under "waitpid", line 2: "or if the FLAGS": Insert 0 between "or" and "if" {254} first example, last line ${"${pkg}::$name"} = 5; changed to ${"${$pkg}::$name"} = 5; (289) para. 4, sentence 1 changed to: "An object is a data structure with a collection of behaviors." (Remove "that the data structure is capable of") {299} last paragraph: "When the block is exited" changed to "When a block is exited" (302) last paragraph: added a right parenthesis to the end of the paragraph. {349} line 5 of code: added a space between "$remote," and "$port" {350} code example at top of the page, the line print Client "Hello there, $name, it's now ", changed to print CLIENT "Hello there, $name, it's now ", (Just changed "Client" to "CLIENT") {393} lines -4 through -2: The untie and the undef statements were reversed, as shown: untie %db_hash; undef $db_obj; # removing the last reference to the DB # closes it. Closing DB_FH is implicit. now reads: undef $db_obj; # removing the last reference to the DB # closes it. Closing DB_FH is implicit. untie %db_hash (414) The example line: perl Makefile.PL ... added an extra space and backslash at the end {442} near end of code: $fh->setpos $pos; changed to: $fh->setpos($pos); {444} third last line tie %hash, ... changed to: tie (%hash, ... {451} The line $bar = 'blech' changed to: $opt_foo = 'blech' {460} second code block, lines 1 and 4: $h = -20.00732 * 1.7; # 34.012444 .... ... $h = -20.00732 * $g; # "34.012444" ... (Removed the hyphens: the numbers changed to "20.00732") {462} last example, last line: untie %h; changed to: untie %hash; {508} at the end of the list of "ok" and "not ok" lines, add another "not ok" line (602) under "command bufferring" the see also changed to "buffer" not "buffering" (622) index entry "$_($ARG)": "forearch" should read "foreach" (623) index entry "- (hyphen), -. (arrow) operator" should also refer to page 295 (623) index entry "# (sharp), for comments": "57" changed to "58" (624) index entry "arrow (->) operator" should also refer to page 295 (627) index entry for "comments": "57" changed to "58" wrong page (630) index entry "filehandles": remove subentry "copying, 438" (634) index entry "local functions": add reference to page 184 (637) index entry "paragraph mode": add reference to page 132 {643} the index should include the entry, "tr/// (translation) operator, 74, 234"