for(0..$#array1) { print $array1[$#array1 - $_]; print $array2[$#array2 - $_]; }
EDIT: Oops, you fixed the array index. But you still have your $# reversed on two lines. :)
In reply to Re^2: Looping backwards through two arrays at once?
by chester
in thread Looping backwards through two arrays at once?
by Spidy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |