Welcome to the Monastery | |
PerlMonks |
Re: How do I make a hash of hashes?by da w00t (Sexton) |
on Feb 23, 2000 at 01:20 UTC ( [id://3891]=note: print w/replies, xml ) | Need Help?? |
If it was declared as a named hash of multiple dimensions, you may access it like $hash{foo}->{bar}->{beer}="free";,
or like this: $hash{foo}{bar}{beer}="free"; if you prefer to drop the arrows.
If it's an anonymous hash held in a hash reference, you access it like this:
In Section
Seekers of Perl Wisdom
|
|