Help for this page

Select Code to Download


  1. or download this
    print "$_\n" for map {$_->[1]}
                     sort { $a->[0] <=> $b->[0] }
                     map {[/(\d+)/, $_]} @files;
    
  2. or download this
    print "$_\n" for sort {
          my ($ad, $bd) = map /(\d+)/, ($a, $b);
          $ad <=> $bd
    } @files;