A general format for accessing multiple arrays (of the same length) is
Code:
for (0..$#a) {
# do something here with
# $a[$_], $b[$_], and $c[$_]
}
you'll have to fill in the loop contents since you didn't specify whether you wanted the output printed or stuffed into three new arrays or into an array of arrays (multidimensional array). This isn't really sorting, though, more like transposing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.