in reply to Slice of an array of hashes

You can only use arrow notation to extract a single scalar. Slice notation requires that you use the more general @{block-returning-hashref}{index-list} form. You should review the two rules for using references.

And no, you can't slice along any but the last dimension. dragonchild's map is the solution for what you want to do.


Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: Slice of an array of hashes
by VSarkiss (Monsignor) on Oct 24, 2005 at 19:29 UTC