Just another Perl shrine | |
PerlMonks |
Re: Issues with Hashesby ssandv (Hermit) |
on Mar 23, 2010 at 17:38 UTC ( [id://830350]=note: print w/replies, xml ) | Need Help?? |
sort keys is the answer to the first part. sort is pretty useful for getting a list in order, and pretty powerful in that it lets you use your own sort order if you want. As for the second part, $Verbs{$cmd} will be a hashref (the value associated with the key $cmd ), and you can then look at $Verbs{$cmd}{discrete} to see the value there.
In Section
Seekers of Perl Wisdom
|
|