MCslp HomeMCslp Home Contact | About | Help | Legal
Books | Articles | Downloads
News | News Archive
 
 
 
Page 169, Under Time heading, 5th line.

The figure given for the maximum time value is incorrect - it should be (2^32)-1, not (2^-32)-1

Page 171, Under Comparing Time Values

You should use gmtime not localtime to compare two time values. Otherwise the value returned is subjet to the local time zone calculation and will give skewed results

Page 179 Table 7-1

The contents of the table are wrong, they should read:

AcronymDescriptionFunction Combination
LIFOLast in, First Outpush/shift
FIFOFirst in, First Outunshift/shift
FILOFirst in, Last Outunshift/pop
LILOLast in, Last Outpush/pop

Page 442, Within the init_cgi function definition

The line:

my $length = $ENV{QUERY_LENGTH};
should read:
my $length = $ENV{CONTENT_LENGTH};

You should also change the line:

if (defined($query))
to read:
if ($query =~ /\w+/)

Thanks to Bjrnar Salberg for the updates.

Page 809, Second code example.

The penultimate line should have $old, not $was, so it should read:

renamed($old,$_) unless $old eq $_;

 PTCR Quick Links
 

Book Summary
Book Errata
Add a new errata entry
Book Outline
Chapter Contents
Download Scripts: PC - Unix - Mac

 Buy Perl: The Complete Reference
 

Perl the Complete Reference has been superceded by Perl The Complete Reference 2ed...

 Buy Perl Programmers Reference
 

Perl Programmers Reference
Amazon US | Amazon UK
fatbrain (US)
The Perfect Complete Reference Desktop Companion
Incoporates a quick syntax reference, extensive function and library reference.
Also covers the Perl compiler, debugger and threads.
Check the details on the Perl Programmers Reference


Website (c) 1998 and beyond Martin C Brown, MCSLP, UK. All other items, including contributed texts, files and information is the copyright of their respective owners.
Contact Us