Welcome to the Monastery | |
PerlMonks |
RE: Re: matching an array of alternatesby Zoogie (Curate) |
on Jun 23, 2000 at 23:54 UTC ( [id://19652]=note: print w/replies, xml ) | Need Help?? |
Just wanted to point out that if the file you're searching has a lot of lines, you can gain some speed by adding the "o" option to the regex; i.e.:
This way, the regular expression only has to be compiled once. - Zoogie
In Section
Seekers of Perl Wisdom
|
|