print $_,shift(@b) for @a; # OR print shift(@a),shift(@b) while @a; # might have been done already # OR $i = 0; @c = map { $_, $b[$i++] } @a; # gives a new array with the values
In reply to Re: Foreach two arrays?
by Rhandom
in thread Foreach two arrays?
by Dylan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |