Hi craigt
Try this
print "$_:$hash{$_}\n" for (sort {$hash{$a} cmp $hash{$b}} keys %hash) +;
Punitha
In reply to Re: sorting a hash by value with ties
by Punitha
in thread sorting a hash by value with ties
by craigt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |