in reply to Sort textfile
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Sort textfile
by Anonymous Monk on Apr 13, 2004 at 22:02 UTC | |
by Sandy (Curate) on Apr 14, 2004 at 15:08 UTC |