in reply to sorting a hash by value with ties
Hi craigt
Try this
print "$_:$hash{$_}\n" for (sort {$hash{$a} cmp $hash{$b}} keys %hash) +;
Punitha
|
---|
In Section
Seekers of Perl Wisdom
in reply to sorting a hash by value with ties
Hi craigt
Try this
print "$_:$hash{$_}\n" for (sort {$hash{$a} cmp $hash{$b}} keys %hash) +;
Punitha
|
---|