Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    print
      map {join ",", @$_}
        sort {$a->[2] cmp $b->[2] or $a->[0] <=> $b->[0]}
          map {[split /,/, $_, 3]} <>;
    
  2. or download this
    perl scriptname < input_file > output_file