![]() |
|
more useful options | |
PerlMonks |
Re: References for subroutines to Hashes in Hashes :)by mikfire (Deacon) |
on Aug 17, 2001 at 17:48 UTC ( [id://105667]=note: print w/replies, xml ) | Need Help?? |
You are very close. The trick to remember is that hashes
and arrays can only store scalars. Perl can have complex
data structures only because a reference is a scalar.
This means that your hash of hashes is really a hash of references to hashes. To pass the reference to a subroutine, then, you need only access the value. In this case simple remove the preceding slash ( sorry, I would try to use a code tag, but I am using Opera and it makes a real mess of things ).
Hth,
In Section
Seekers of Perl Wisdom
|
|