vroom has asked for the wisdom of the Perl Monks concerning the following question:
Any help or explanation as to how to do this would be much appreciated.$array[0]="25 3 7"; #computed value 3*7=21 $array[1]="68 4 6"; #computed value 4*6=24; $array[2]="23 2 3"; #computed value 2*3=6; magic_sort(@array); #our to be determined sort function; #after our sort #$array[0] is "23 2 3"; #$array[1] is "25 3 7"; #$array[2] is "68 4 6";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Complex sorting using map
by Kasei (Novice) on Dec 28, 1999 at 07:33 UTC |