Updated 3.19.02 with comments.my @keys = sort { @{$info{$b}}[$index] <=> @{$info{$a}}[$index] #compare plain +numeric values || length($b) <=> length($a) #if there are matching vals comapre +key length || $a cmp $b #compare chr if ya gotta } keys %info;
In reply to Sorry, Caffeine Deficiency
by jerrygarciuh
in thread Sorting Hash of Arrays by a Value
by jerrygarciuh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |