Intermediate Perl

Errata for Intermediate 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.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted
PDF Page 143
Sorting with Indicies, first/second blocks of code

my @sorted = sort qw(Gilligan Skipper Professor Ginger Mary Ann); print "@sorted\n"; which necessarily results in: Gilligan Ginger Mary Ann Professor Skipper would actually print out: Ann Gilligan Ginger Mary Professor Skipper It most likely was supposed to be: my @sorted = sort qw(Gilligan Skipper Professor Ginger Mary-Ann); print "@sorted\n"; which prints out correctly: Gilligan Ginger Mary-Ann Professor Skipper The hyphen in Mary-Ann was lost or was optimized away possibly when it (the text) was converted from the Unicode 'em-dash' and then back into regular code again, just a theory.

Gabriel Sharp  Oct 20, 2014 
PDF Page 152
Listing for sub dump_data_for_path example

dump_data_for_path("$path/$_", $directory{$_}); should be dump_data_for_path("$path/$_", %$data->{$_}); The directory from the sub 'data_for_path' return the %directory as a reference that gets shifted to $data.

shadow1  Sep 23, 2014 
Safari Books Online 49
5th paragraph

I am viewing the book online so I don't have real page numbers. I used 49 as a page number; it means chapter 4, section 9: Simplifying Nested Element References with Arrows, there is a typo. From the text: The arrow has to be between nonsubscripty things. Why wouldn’t it be between subscripty things? Well, imagine a reference to the array @all_with_names: Should be: The arrow has to be between subscripty things. Why wouldn’t it be between nonsubscripty things? Well, imagine a reference to the array @all_with_names:

Robert A MacLeod  Feb 20, 2014