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
In reply to Re: sorting a two dimensional array by one column
by antirice
in thread sorting a two dimensional array by one column
by dannoura
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |