I believe you simply want compare
$foo->{$b} <=> $foo->{$a}
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! ** The Third rule of perl club is a statement of fact: pod is sexy. |
In reply to Re: Sort not acting as expected on Hash Ref
by PodMaster
in thread Sort not acting as expected on Hash Ref
by oakbox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |