foreach $item (@array1) { push @array3, $item .pop(@array2); }