Help for this page

Select Code to Download


  1. or download this
    reverse sort { my_cmp($a, $b) } @foo    # (1)
    
  2. or download this
    sort { my_cmp($b, $a) } @foo            # (2)
    
  3. or download this
    @u = map { [$_, $i++] } (0,0,3,2,2);
    $" = '-';
    ...
           (map {$_->[1]} sort { $b->[0] <=> $a->[0] } @u),
           "\n" );
    
  4. or download this
    24310
    23401