Help for this page

Select Code to Download


  1. or download this
    my @sorted = sort { sorter($a, $b, $offset) } @list;
    
    ...
       my ($left, $right, $offset) = @_;
       ...
    }
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
        my @arr_b = split /\|/, $right;
        return $arr_a[$offset] cmp $arr_b[$offset];
    }