Problems? Is your data what you think it is? | |
PerlMonks |
Re: Sorting a hash. What am I doing wrong?by Enlil (Parson) |
on Jan 14, 2003 at 00:28 UTC ( [id://226667]=note: print w/replies, xml ) | Need Help?? |
what you are doing with this: is sorting the values stored in $seen{$a} against $seen{$b}, what you want is to sort the hash keys (not the hash values) then you want to just do something like the following:
-enlil
In Section
Seekers of Perl Wisdom
|
|