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

On page 217, in the "section" paragraph (4th from top), 5th line, "Finally,
the rule returns a reference to a two-element hash." It's an array, not a
hash. BTW, do you want the space character between the '[' and $item[1]? (By
comparison, it's absent from the anonymous array returned by the `assign'
rule.)

Also, in the 5th and 6th paragraphs from the top, do you want `file'
(referring to the rule) to be in code font? The other rules are...
import-bot (20211) [Avatar] Offline
#2
Re: p. 217 "hash" s/b "array"
[Originally posted by dave]

> On page 217, in the "section" paragraph (4th from top), 5th line, "Finally,
> the rule returns a reference to a two-element hash." It's an array, not a
> hash.

Actually, it's a _list_ not an array, but you're right to say I'm wrong smilie

> BTW, do you want the space character between the '[' and $item[1]? (By
> comparison, it's absent from the anonymous array returned by the `assign'
> rule.)

My personal style is to include those spaces.

[ $item[1], \%sec ]

Don't know why they're missing in that code example.

> Also, in the 5th and 6th paragraphs from the top, do you want `file'
> (referring to the rule) to be in code font? The other rules are...

Yep. You're right.

Where were you when we were looking for proof-readers smilie

Dave...