Mehdi has asked for the wisdom of the Perl Monks concerning the following question:
when I use sort() to sort an array like this:
@array = (70, 10, 8);
@array = sort (@array);
the result is : 10, 70, 8
how can I get the result as: 8, 10, 70 in Perl?
@array = (70, 10, 8);
@array = sort (@array);
the result is : 10, 70, 8
how can I get the result as: 8, 10, 70 in Perl?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Sort Array
by wog (Curate) on Jun 08, 2001 at 01:35 UTC | |
Re: Sort Array
by ZZamboni (Curate) on Jun 08, 2001 at 02:02 UTC |
Back to
Seekers of Perl Wisdom