in reply to Finding pages without specific words

while($line = <DAT>) { if ($line != /$nameOne/i) { if ($line != /$nameTwo/i) { print "$name\n"; $ct++; last; } } }
This make the assumption that $nameOne and $nameTwo are on the same line. Is this what you really wanted?

Thanks
UnderMine

Replies are listed 'Best First'.
Re: Re: Finding pages without specific words
by Anonymous Monk on Mar 08, 2004 at 15:50 UTC
    No, I didnt want to always check if $nameOne and $nameTwo are on the same line.