if ($i =~ m/@array2/) { print "$i is in array2 - skipping\n";