Errata

Perl 5 Pocket Reference

Errata for Perl 5 Pocket Reference

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 10-12
Variables section

The Variables section includes the syntax for accessing a scalar that is
referenced ($$p, $$p[6], and $$p{red}), but excludes the syntax for
accessing an array or hash that is referenced (@$p, @{$p[6]}, @{$p{red}},
%$p, %{$p[6]}, %{%p{red}}). This syntax is often needed when using the
array-of-arrays, array-of-hashes, hash-of-arrays, and hash-of-hashes data
structures.

Anonymous   
Printed Page 11
hash examples

It would help to have some examples of accessing hash elements without the
quotes (e.g., $var{red}, $$p{red}, $p->{red}, $var{a}, etc.) because the
quotes are unneccessary.

Anonymous   
Printed Page 17
lvalue attribute explanation (line 11)

The explanation states that an lvalue attribute means that the subroutine can
be assigned to. That's misleading: it's the *returned value* from the
subroutine that can be assigned to.

Anonymous   
Printed Page 28
substr explanation (bottom of page)

The explanation of the substr function doesn't mention what happens when the
optional argument len is omitted.

Anonymous   
Printed Page 31
split explanation

The explanation of what split does when it's given a negative limit is vague.
A negative limit is treated as if it were an arbitrarily large limit. In other
words, it forces all trailing empty fields to be returned.

Anonymous