Put your ignore words in a hash, like so:
my %ignores = map { $_ => 1 } qw/bar foo baz quux/;
Then, as you read through the file break your $lines into $word's and:
next if $ignores{$word};
Hashes are fast and convenient. Use them.
--
perl: code of the samurai
In reply to Re: Nested foreach
by samurai
in thread Nested foreach
by esoteric neonate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |