Help for this page

Select Code to Download


  1. or download this
    my @sorted =
      map { $_->[0]}
      sort { $b->[1] <=> $a->[1] }
      map { [ $_, (stat $_)[9] ] }
      @allfiles;
    
  2. or download this
    my %h;
    foreach $file (sort { ($h{$a} ||= (stat $a)[9]) <=> 
                 ($h{$b} ||= (stat $b)[9]) } @allfiles) { ...;