Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Getting keys of a hash elementby Trinary (Pilgrim) |
on Jan 25, 2001 at 00:28 UTC ( [id://54114]=note: print w/replies, xml ) | Need Help?? |
Getting keys of a hash _element_ or getting keys of a hash? The latter would imply that the hash values are references to more hashes, which is very different. Example of the simple case:
The whole reference can o' worms looks somethin like this:
There's probably about a million typos in there, but someone will correct me. =) That'll print out a line with the keys contained in the hash referred to by the values of %hash. Not sure if this is what you want, I'm guessing the first solution is closer to what you mean... enjoy Trinary
In Section
Seekers of Perl Wisdom
|
|