in reply to Looping through multiple arrays

You are wrong in declaring the array:
perl -MData::Dumper -e "@arr=['a','b']; print Dumper (\@arr)" $VAR1 = [ [ 'a', 'b' ] ];
You are declaring arrays with only one element which turns to be an anonyomous array.

Without getting deep in what your data means or meant to be used, you have to do something simple as:
perl -MData::Dumper -e "@arr1=qw(a b);@arr2=qw(c d);foreach (@arr1,@ar +r2){print qq([$_]\n) }" [a] [b] [c] [d]
HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.