my @sorted = sort { $a <=> $b } @numbers; my $min = $sorted[0]; my $max = $sorted[-1];
In reply to Re: sort an array with +ve & -ve numbers in it
by ikegami
in thread sort an array with +ve & -ve numbers in it
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |