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 baslow]

Although I have not yet had a chance to read the entire e-book I have read
chapter 2 and looked over the rest. I can tell already that this will be a
much-consulted reference for me. It addresses, better than any previous Perl
books, the ways that I use Perl. Thank you!

I have to tell you about an error I found, though. On page 32, Section 2.4.2
("Advantage of the filter model") the example you give will not produce the
desired results, except by accident:

ls -l | grep proj101 | sort

should be

ls | grep proj101 | sort

The "-l" option will produce output in which the filename is preceded by all
sorts of other information (permissions, links, size, date). Unless all these
items are identical for all the filenames being sorted the output is unlikely
to be that the filenames are properly sorted.
import-bot (20211) [Avatar] Offline
#2
Re: Book looks great!/Erratum
[Originally posted by dave]

> Although I have not yet had a chance to read the entire e-book I have read
> chapter 2 and looked over the rest. I can tell already that this will be a
> much-consulted reference for me. It addresses, better than any previous Perl
> books, the ways that I use Perl. Thank you!

Thank you very much.

> I have to tell you about an error I found, though. On page 32, Section 2.4.2
> ("Advantage of the filter model"smilie the example you give will not produce the
> desired results, except by accident:
>
> ls -l | grep proj101 | sort
>
> should be
>
> ls | grep proj101 | sort
>
> The "-l" option will produce output in which the filename is preceded by all
> sorts of other information (permissions, links, size, date). Unless all these
> items are identical for all the filenames being sorted the output is unlikely
> to be that the filenames are properly sorted.

That's actually a number (1) not a letter (l). If you zoom the PDF up a couple
of times you'll see that it's different to the letter "l" in "ls".

It _is_ confusing tho. I'll see if we can make it any clearer in future
printings.

Thanks for posting.

Dave...
import-bot (20211) [Avatar] Offline
#3
Re: Book looks great!/Erratum
[Originally posted by chrisbatjesmond]

Hi Dave!

In the .PDF version:
pg 182. in the Tree example data structure,
[( should be [{ twice
second MAX should be MIN

pg 183 Fig 10.1
the value at $doc->[1][12][2] should be 6 (not 12).

Otherwise a great read -- good to see some *practical* examples,
none of this theoretical stuff smilie
import-bot (20211) [Avatar] Offline
#4
Re: Book looks great!/Erratum
[Originally posted by dave]

> Hi Dave!
>
> In the .PDF version:
> pg 182. in the Tree example data structure,
> [( should be [{ twice
> second MAX should be MIN
>
> pg 183 Fig 10.1
> the value at $doc->[1][12][2] should be 6 (not 12).
>
> Otherwise a great read -- good to see some *practical* examples,
> none of this theoretical stuff smilie

Chris,

Thanks. You're absolutely right on both counts. I'll get those coreections added
to the errata.

Cheers,

Dave...