in reply to Foreach two arrays?
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 [download]