When dealing with parallel arrays, you will need to iterate over the indexes of one of the arrays rather than iterating over the array itself.
for my $i (0..$#array1) { say "$array2[$i] $array1[$i]"; }
In reply to Re: Join 2 arrays horizontally
by ikegami
in thread Join 2 arrays horizontally
by perl_5eeker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |