Start any video training course for FREE. More than 500 to choose from. Learn more
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
PDF Page 211
last example

From the context of the list $sec, $min, $hour, $day, $mon, $year, $day would appear to return the day of the month (and not Tue or Sat, which is what it actually does). Suggestion: change to $mday with a footnote explaining the difference between it and $day. If not it would at least be good to add a footnote to the existing '$day' explaining how it $day (and $mday) work.

James Preston  Sep 22, 2015 
PDF Page 349

The website link: is no longer valid (404 Error - Not found). Its content is available now at:

Grzegorz Szpetkowski  Sep 19, 2015 
PDF Page 349
2nd paragraph

It's a minor nitpick. The sentence says: "The charnames module" while it should be: "The charnames pragma" since the Perl documentation classify it as pragma (see By the way, it might be useful to add following line: use charnames ':full'; since it is required for issued code snippet to make it work.

Grzegorz Szpetkowski  Sep 16, 2015 
Safari Books Online 15.4
Chapter 15, exercise 4

You check if number is odd/even by checking if it's divisors contain 2 but you don't add the number itself to the divisors so this doesn't work for number 2. My solutions: a) check if number ends with [02468] b) check divisors and the number itself ($num == 2)

David Mašek  May 16, 2015 
Printed Page 130
bottom of page, in Footnote

“See “Know your character classes under different semantics” at” The link is no longer available, however, it can be found at:

Anonymous  Apr 08, 2015 
Printed Page 251
the error is on the errata web page itself.

the last line of errata "Page 251, Last paragraph", submitted by Varun Vats: Note from the Author or Editor: Change to "least restrictive to most" as noted. should be Change to "most restrictive to the least" as noted.

Anonymous  Jan 13, 2015