There's more than one way to do things | |
PerlMonks |
Re: Hash sort again!!by rchiav (Deacon) |
on Apr 25, 2001 at 20:21 UTC ( [id://75523]=note: print w/replies, xml ) | Need Help?? |
First question is - what do you think you're sorting? The hash itself? If so, you can't sort a hash. You can however sort a list of the keys or values. You might want to look at how sort works. It will "return" a sorted list. That means that you have to assign the sort to an array. Then that array will contain a sorted list of the keys.
Hope this helps..
In Section
Seekers of Perl Wisdom
|
|