Keep It Simple, Stupid | |
PerlMonks |
Re: One line assigment statement with regex matchby mugwumpjism (Hermit) |
on Jun 23, 2005 at 00:44 UTC ( [id://469254]=note: print w/replies, xml ) | Need Help?? |
I tend to use something like this;
This is especially important if your @terms contain metacharacters such as parantheses, asterix, period, etc. Also, it is usually faster because you're only doing one regular expression match per line, not many.
In Section
Seekers of Perl Wisdom
|
|