in reply to Sorting by Array values, obtaining indices
Though I question the argument that hashes take up more space as a legitimate reason not to use them?my @idx = sort {$val[$a] <=> $val[$b]} 0 .. $#vals
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting by Array values, obtaining indices
by PetaMem (Priest) on Jun 27, 2005 at 16:36 UTC | |
by waswas-fng (Curate) on Jun 27, 2005 at 17:08 UTC | |
by Limbic~Region (Chancellor) on Jun 27, 2005 at 16:44 UTC |