| Page XXI, Within the introduction to Chapter 4 |
|
|
The description currently reads:
This includes a good to some of
it should read:
This includes a guide to some of
|
|
| Page 39, Under Symbolic Logical And |
|
|
The example for this statement should read:
$a && $b;
|
|
| Page 39, Under Symbolic Logical Or |
|
|
The example for this statement should read:
$a || $b;
|
|
| Page 41 Under Assignment Operators |
|
|
The line:
substr function (for replacement strings)
should read:
substr function (for replacing strings)
|
|
| Page 63, $' variable |
|
|
In the paragraph immediately after the example, the line:
The same rule holds true for the $',$& and $' variables as well.
It should be the $` (backtick, or $PREMATCH variable), $& and $' ($POSTMATCH) variables as well.
|
|
| Page 64,66 Exampes involving $hash{list} |
|
|
Due to a problem during production hash variables of the form $hash{list} became corrupted. Although a number of these were picked up during proof stage, some slipped through. The examples affected are:
Page 64, example 3::
$hash{ = [1,2,3]; should read $hash{list} = [1,2,3];
Page 66, last example::
print join(', ',@{list}$hash{); should read print join(', ',@{$hash{list}});
|
|
| Page 66 First example under Nested Structures |
|
|
The first example has a trailing single quote that shouldn't be there. The entire line should read:
$hash{list}[0] = 'First';
|
|
| Page 155 TK Dialogues code example |
|
|
There is a missing closing sqaure bracket on the -buttons definition. It should read:
-buttons => [qw/OK Cancel/];
|
|
| Page 178 Second code example |
|
|
There is a missing closing curly brace on the bless line, it should read:
my $self = bless [\%{"$class\::FIELDS"}], $class;
|
|
| Page 193, Under the first eval example. |
|
|
The example has an error in, it should read
eval
{
require Net::FTP;
};
print "Error: Module failed to load ($@)" if $@;
Note the addition of the semicolon at the end of the eval block - it's required as eval is strictly a function, not a keyword or statement.
|
|
| Page 268 Top date example |
|
|
The first exmple contains a small error in the regular expression. The line
($year, $month, $day) = $date =~ '/(d{4})(\d{2})(\d{2})/';
should read:
($year, $month, $day) = $date =~ /(\d{4})(\d{2})(\d{2})/;
|
|