The constant-text-only regex means that Boyer-Moore can kick in sooner, or so says the hints I read about regex a while back.foreach (@diaglist) { next if /Clock/; next if /Switch/; next if /Power/; next if /Process +or/; push @something, $_; }
-- Randal L. Schwartz, Perl hacker
In reply to RE: RE: Re: THIS not THAT
by merlyn
in thread THIS not THAT
by Limo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |