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
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).
||Aug 07, 2016