in reply to declaring a common loop variable
foreach my $thing (@arr1,@arr2) { print "$thing\n"; }; [download]