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


in reply to Finding pages without specific words

Hello

Your if tests are also using the wrong operator.

if ( $line !~ /$nameOne/i )

'!~' rather than '!='

Running with Warnings enabled would have shown this error. :)

Wonko