my @index = 0..$#a; @index = sort { $a[$a] <=> $a[$b] } @index; my @combined_sorted = map { $a[$_],$b[$_] } @index;
In reply to Re^2: sorting two arrays together
by youlose
in thread sorting two arrays together
by siskos1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |