To make it a bit easier to update, one might write it as:
my @stopwords = qw( longwordOne anotherLongWord thirdLongHere ); my $stopmatch = join( '|', @stopwords ); while( <DATA> ) { next if /$stopmatch/i; print; }
Thus you only have to update the @stopwords array to add another stop-word.
--
"To err is human, but to really foul things up you need a computer." --Paul Ehrlich
In reply to Re: Re: next if attempt
by LTjake
in thread next if attempt
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |