while (<INPUT>) { my $skip; for my $match (@list) { $skip = 1, last if /$match/; } next if $skip; print; }
In reply to Re: Re (tilly) 3: Unix 'grep -v' equivalency in Perl (was: Perl Regex Question)
by runrig
in thread Unix 'grep -v' equivalency in Perl (was: Perl Regex Question)
by quasimojo321
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |