in reply to Issues with Hashes
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Issues with Hashes
by jedikaiti (Hermit) on Mar 23, 2010 at 18:19 UTC |
In Section
Seekers of Perl Wisdom