| |
|
|
|
Errata and Enhancements
for
Programming Perl in the .NET Environment
Programming Perl in the .NET Environment
ISBN: 0-13-065206-7
by Yevgeny Menaker, Michael Saltzman and Robert J. Oberg
Copyright © 2003 by Yevgeny Menaker, Michael Saltzman and Robert J. Oberg
Published by Prentice Hall PTR
Prentice-Hall, Inc.
Upper Saddle River, NJ 07458
Please send any errata you discover or
enhancements you would like to suggest to:
jeka_books@hotmail.com.
p. 31 the last two lines of Perl code are
|
In the book
|
Should be
|
|
print "%hash\n";
|
print "%roles\n";
|
|
print '%hash\n';
|
print '%roles\n';
|
and thus the last three lines of output are
|
In the book
|
Should be
|
|
%hash;
|
%roles
|
|
%hash\n
|
%roles\n
|
|
%hash;
|
%roles
|
|
%
|
%
|
Thanks to Nick Ng.
p.54 (line of code should be deleted):
|
In the book
|
Should be
|
|
$ans = 120;
|
$ans = $x % 2 == 0 ? "even" : "odd";
|
|
$ans = $x % 2 == 0 ? "even" : "odd";
|
|
$x is defined at the top of the same page.
Thanks to Nick Ng.
|
|
Copyright © 2004 • Object Innovations, Inc.
|
|