Help for this page
my %hash; while (my ($filename, $number) = &get_both) { ... } my @sorted_files = sort { $hash{$a} <=> $hash{$b} } keys %hash;
my @array; while (my ($filename, $number) = &get_both) { ... } my @sorted = sort { $a->[1] <=> $b->[1] } @array;