in reply to Re: Unix 'grep -v' equivalency in Perl (was: Perl Regex Question)
in thread Unix 'grep -v' equivalency in Perl (was: Perl Regex Question)
I'm not a huge fan of the 'next LABEL' command. It's too much like 'goto', which is one of those things that shouldn't be shown in public.my $re = join ("|", map {quotemeta} @list); while (...) { next if /$re/; print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 3: Unix 'grep -v' equivalency in Perl (was: Perl Regex Question)
by tilly (Archbishop) on Jul 10, 2001 at 01:31 UTC | |
by runrig (Abbot) on Jul 10, 2001 at 02:07 UTC | |
by tadman (Prior) on Jul 10, 2001 at 21:13 UTC | |
by tilly (Archbishop) on Jul 10, 2001 at 21:55 UTC |