Wrox Home  
Search
Beginning Perl (1118013840) cover image

Beginning Perl

Curtis Poe
ISBN: 978-1-118-01384-7
Paperback
744 pages
September 2012
Other Available Formats: E-book
If you are an instructor, you may request an evaluation copy for this title.
Paperback Version: US $39.99 Add to Cart

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
85 Error in code
In the chop() and chomp() section, the first "grammar" snippet reads:

chop (defauls to $_)

And should read:

chop (defaults to $_)
11/29/2012
101 Error in Text
It currently reads:

To assign a reference to that array to a scalar, prepend it with a backslash:
my $fools = @fools;

It should read:

To assign a reference to that array to a scalar, prepend it with a backslash:
my $fools = \@fools;
05/10/2013
375 Error in Text
Top of page currently reads:

substition

Should read:

substitution
03/22/2013
8 235 Text Correction: Error in Code
Under SubStitutions:
Code Line six reads:
"print $main_course."
should read:
"print $main_course;"
04/02/15
260 Text Correction: Error in Code
Under the section entitled "The Diamond Operator":
currently reads:
perl myprog.pl file1.txt file2.txt file3.txt
should be:
perl myfilter.pl file1.txt file2.txt file3.txt
04/02/15
260 Text Correction: Error in Code
currently reads:
nonwhitespace
should be:
non-whitespace
04/02/15
260 Text Correction: Error in Code
page 260 last sentence of Note:
currently reads:
And if you?re brave, see perldoc B for a better understand of the B:: modules, but be warned: it?s dense.
Should be:
And if you?re brave, see perldoc B for a better understanding of the B:: modules, but be warned: it?s dense.
04/02/15
261 Text Correction: Error in Code
Page 261 top block of code:
currently reads:
If you need a particular suffix for the tempfile:
Should read:
# If you need a particular suffix for the tempfile:
04/02/15
262 Text Correction
page 262 last sentence:
currently reads:
Perl silently translates newline characters the appropriate newline character for your operating system.
should be:
Perl silently translates the newline character(s) for the appropriate newline character(s) of your operating system.
04/02/15
277 Text Correction: Error in Code
Page 277: The last line of code on the page currently reads:
find sub { print ?$_ -> $File::Find::name\n? }, ?notes/? );
should be:
find( sub { print "$_ -> $File::Find::name\n" }, 'notes/' );
04/02/15
292 Text Correction-error in code
under the "Writing a sort Subroutine" section:
Currently reads:
@employees =
sort { $b->{years} <=> $a->{years}
||
$a->{payscale} <=> $b->{years} # ERROR!!
||
$a->{name} cmp $b->{name}
}
@employees;
This should be:
@employees =
sort {
$b->{years} <=> $a->{years}
||
$a->{payscale} <=> $b->{payscale}
||
$a->{name} cmp $b->{name}
}
@employees;
4/27/15
292 Text Correction-error in code
page 292 second code example under the "Writing a sort Subroutine" section:
sub by_seniority_then_pay_then_name {
$b->{years} <=> $a->{years}
||
$a->{payscale} <=> $b->{years} # ERROR!!
||
$a->{name} cmp $b->{name}
}
@employees = sort by_seniority_then_pay_then_name @employees;
This should be:
sub by_seniority_then_pay_then_name {
$b->{years} <=> $a->{years}
||
$a->{payscale} <=> $b->{payscale}
||
$a->{name} cmp $b->{name}
}
@employees = sort by_seniority_then_pay_then_name @employees;
4/27/15
293 Text Correction-error in code
page 293 under the "Writing a sort Subroutine" section:
currently reads:
sub by_seniority_then_pay_then_name($$) {
my ( $employee1, $employee2 ) = @_;
$employee2->{years} <=> $employee1->{years}
||
$employee1->{payscale} <=> $employee2->{years} # ERROR!!
||
$employee1->{name} cmp $employee2->{name}
}
@employees = sort by_seniority_then_pay_then_name @employees;
This should be:
sub by_seniority_then_pay_then_name($$) {
my ( $employee1, $employee2 ) = @_;
$employee2->{years} <=> $employee1->{years}
||
$employee1->{payscale} <=> $employee2->{payscale}
||
$employee1->{name} cmp $employee2->{name}
}
@employees = sort by_seniority_then_pay_then_name @employees;
4/27/15
295 Text Correction-error in code
Page 295 In the sentence:
currently reads:
Clearly that?s not right, but Perl?s default sort does not recognize the U+0041 U+0030A as being combined.
should read:
Clearly that?s not right, but Perl?s default sort does not recognize the U+0041 U+030A as being combined.
4/27/15
327 Text Correction
Page 327 Under the Exporting section.
"Now look at theMy::Number::Utilities package again:"
should be
"Now look at the My::Number::Utilities package again:"
4/27/15
331 Text Correction
Page 331 Top of page, second line of Perl code:
"my ( $records ) = @_;"
should be indented.
4/27/15
376 Text Correction
P 376 There is no source code file to run the lib/TV/Episode/Bradcast.pm class as depicted on p. 376 of the book. Please use listing_12_2_broadcast.pl for this.
4/27/15
Printer-Ready Version   Share This
With you wherever you go: pdf + ePub + kindle -- DRM-free