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.

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
Printed Page 239
'keep looping'

Using a string literal here leads to the warning 'Useless ...Constant'. Also, better to use a variable instead of the bare '1', e.g. $DUMMY while....

Anonymous  Aug 09, 2017 
PDF Page 250
last paragraph

There is an issue with the following statement: "If there is a number on the lefthand side, you get a numeric comparison, but if there is a string on the lefthand side, you get a string comparison." According to the table given in perlsyn, in general, the comparison is determined by the type of righhand side, not the lefthand: Any Str string equality $a eq $b Any Num numeric equality $a == $b The notable exception is when left side is Num and right is a "Numish" string, which is described further and actually takes precedence over these two, upper rules (because it is listed higher in perlsyn table).

Grzegorz Szpetkowski  Aug 07, 2016 
PDF Page 254
Code just before the exercises

Page 254 in the 7th Edition and 246 in the 6th Line 5 in the code is $personal_name{$a} cmp $family_name{$b} or but it looks like it should be $personal_name{$a} cmp $personal_name{$b} or

Steve Wright  Sep 07, 2018