local $/; my $contents = ; close IN; my @found; for (@array) { next if -1 == index $contents, $_; push @found, $_; } #### my @found = grep {-1 != index $content, $_} @array;