|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^2: how to put hash key and value in orderby LanX (Monsignor) |
| on Dec 20, 2012 at 03:01 UTC ( #1009678=note: print w/ replies, xml ) | Need Help?? |
|
Have to say, this solution my @keys = sort { $hash{$a} <=> $hash{$b} } keys %hash; is better than mine, cause it tolerates duplicated values! :)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||