in reply to Sorting multiple arrays
my @sorted_a = @array_a[sort { $array_b[$a] <=> $array_b[$b] } 0..$#ar +ray_b];
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting multiple arrays
by Codon (Friar) on Sep 13, 2005 at 15:49 UTC | |
by merlyn (Sage) on Sep 13, 2005 at 15:51 UTC |