![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: help to get hash elementsby linuxer (Curate) |
on Aug 26, 2012 at 22:13 UTC ( #989884=note: print w/replies, xml ) | Need Help?? |
What about Access and Printing of a HASH OF HASHES? Simply create a 2-level loop and iterate through the keys of each level.
update: I missed last night that there is an anonymous array inside $hash{$outer}->{$inner}; so here's an updated code:
As the other answers point out, if there is only one "outer" and one "inner" key, you can skip the loops and access the inner referenced array directly...
In Section
Seekers of Perl Wisdom
|
|