sort returns the sorted array, it does not sort the array.
See example below:
with outputperl -e '@a=(1,5,3);@b=sort @a; print "@a\n"; print "@b\n";'
1 5 3 1 3 5
In reply to Re: Sort textfile
by Sandy
in thread Sort textfile
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |