if the line wasn't commented out, this line produces an ordered list of array indexes. The indexes are ordered so that the first index in the list is the lowest (ordinal) value from the array (@nxxult).
For Example:
use strict;
my @nxxult = (3, 5, 29, -1, 398, 585, 920, 45, 39, 281, 03, 591);
my @indexUlt=sort{$nxxult[$a]<=>$nxxult[$b]} 0 ... $#nxxult;
print join(',', @indexUlt) . "\n";
print "done\n";
Produces the following output:
3,0,10,1,2,8,7,9,4,5,11,6
So the item at index 3 is the lowest, item at index 0 is the second lowest, etc.
"Look, Shiny Things!" is not a better business strategy than compatibility and reuse.
|