This make the assumption that $nameOne and $nameTwo are on the same line. Is this what you really wanted?while($line = <DAT>) { if ($line != /$nameOne/i) { if ($line != /$nameTwo/i) { print "$name\n"; $ct++; last; } } }
Thanks
UnderMine
In reply to Re: Finding pages without specific words
by UnderMine
in thread Finding pages without specific words
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |