Errata


Print Print Icon

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



Version Location Description Submitted By
Printed Page 25
Lookarounds

The regular expression that adds commas to numbers don't work.

$_ = '$1234.56789';
s/(?<!.d)(?<=d)(?=(?:ddd)+)/,/g;

will yield '$1,234.56,789'.

Anonymous 
Printed Page 131
Missing text before section "Typeglobs"

The section "The Symbol Table", in a nutshell, explains how the set of package variables can be
accessed in a hash-like fashion, and features an example showing the strong association between
the two: creating variables causes them to appear in the hash-like structure.

The last step of the example (starting middle of page 130) shows "I can delete all the variables
with the same name", using the delete operator. The output of the example does indeed show that
the result is the removal of the variables *n and *m from the symbol table for package Foo, but
it also shows that the variables themselves are not gone -- $n and $m still have their previous
values.

I was expecting that the variables themselves would cease to exist. The example output is
_correct_ in that the variables are gone from the symbol table yet still exist when referenced
by name, so maybe my expectations are just wrong. But...

Since the section is showing the correlation between variables and the symbol table, ending it
with no explanation of the discrepancy illustrated by the final example left me hanging and
confused. An extra paragraph would be helpful here.

Anonymous