![]() |
|
P is for Practical | |
PerlMonks |
Re: Slicing multilevel hashesby Roy Johnson (Monsignor) |
on Apr 07, 2005 at 17:33 UTC ( #445808=note: print w/replies, xml ) | Need Help?? |
A slice -- even a hash slice -- is not a hash. It's a list (that includes only the values components, not the keys). That's why the sigil is @ and not %. You cannot hash-dereference a list. As dragonchild astutely suggested, you can use map to get the effect you want.
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|