Errata

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
Printed Page 150
The example code after the 2nd paragraph

I realize it is just example code and perhaps not meant to be executable (because of the ellipses), but it might be better to put the if statement on a new line. Also consider comments instead of ellipses to make it executable:

print "Do you like Perl? ";
my $likes_perl = (<STDIN> =~ /\byes\b/i);
# Time passes...
if ($likes_perl) {
print "You said earlier that you like Perl, so...\n";
# Celebrate another Perl convert!
}

Jack C  Mar 16, 2024 
Printed Page 163
The Binding Operator

$file_name =~ s#\A.*/##s; should be $file_name =~ s#\A.*/##g;

Anonymous  Feb 10, 2022