in reply to sorting a two dimensional array by one column

Use the sort command and the numerical comparison operator (<=>).
my @sorted = sort { $a->[$col] <=> $b->[$col] } @origarray;

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1