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
In reply to Re: Finding pages without specific words
by Wonko the sane
in thread Finding pages without specific words
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |