in reply to IF NOT! IF NOT!
foreach my $word (@words) { print "$word\n" if ($word =~ /home/); } [download]
...except that you got the logic backwards.
I need an if statement to say something like "if grep can't find 'home' in a word, print the word."
foreach (@words) { print "$_\n" unless /home/; } [download]