Help for this page

Select Code to Download


  1. or download this
    sub compare
        { (split ":", $a)[0] <=> (split ":", $b)[0] }
    my @sorted = sort compare @table;
    print @sorted;
    
  2. or download this
    print
      map { $_->[1] }
      sort { $a->[0] <=> $b->[0] }
      map { [ (split /:/, $_)[0], $_ ] } @table;
    
  3. or download this
      map { [ (split /:/, $_)[0], $_ ] } @table;
    
  4. or download this
      sort { $a->[0] <=> $b->[0] }
    
  5. or download this
      map { $_->[1] }