The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by slytobias]

Here are a couple of small nits:

- Pages 98-98 suggest that a file which ends with a line solely consisting of
"x00" will cause a loop of the form while ( $line = <FILE> ) to terminate
whereas a loop such as while ( <FILE> ) with implicit assignment to $_ will
not. This is not true. The while loop exhibits the same special behavior in
both cases. In other words, both loops will process all lines of the file.
There is nothing special about $_ in this context. It is the while loop that
is special. Joseph Hall repeatedly makes the same erroneous claim in his
(otherwise excellent) book, Effective Perl Programming. Perhaps this was true
of earlier versions of Perl? It is not the case with 5.6.
- Pg. 106 identifies ISO as the 'International Standards Organization'. This
is a common misconception. The English name for ISO is 'International
Organization for Standardization'. See http://www.iso.org

Now that that's out of the way, I look forward to reading what appears to be a
very useful book. Thanks David.
import-bot (20211) [Avatar] Offline
#2
Re: Minor errata
[Originally posted by dave]

> Here are a couple of small nits:
>
> - Pages 98-98 suggest that a file which ends with a line solely consisting of
> "x00" will cause a loop of the form while ( $line = <FILE> ) to terminate
> whereas a loop such as while ( <FILE> ) with implicit assignment to $_ will
> not. This is not true. The while loop exhibits the same special behavior in
> both cases. In other words, both loops will process all lines of the file.
> There is nothing special about $_ in this context. It is the while loop that
> is special. Joseph Hall repeatedly makes the same erroneous claim in his
> (otherwise excellent) book, Effective Perl Programming. Perhaps this was true
> of earlier versions of Perl? It is not the case with 5.6.

This is something that changed in Perl 5.6.0. I should probably mention that.

> - Pg. 106 identifies ISO as the 'International Standards Organization'. This
> is a common misconception. The English name for ISO is 'International
> Organization for Standardization'. See http://www.iso.org

Thanks for the pointer.

> Now that that's out of the way, I look forward to reading what appears to be a
> very useful book. Thanks David.

Hope you enjoy it.

Dave...