http://www.perlmonks.org?node_id=101749


in reply to Re: font color="#ff0000"IF NOT! IF NOT!/font
in thread IF NOT! IF NOT!

...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/; }