Help for this page

Select Code to Download


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