Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Re^2: Chaining string opsby RMGir (Prior) |
on Aug 28, 2003 at 19:29 UTC ( [id://287498]=note: print w/replies, xml ) | Need Help?? |
Yes, you can do that, which creates a potentially huge alternation list for the regexp engine to swollow. I'm not sure that would be more efficient though, neither is it as clear.
Regex::PreSuf to the rescue!! It'll fix your efficiency problem, although it won't do much for readability :)
In Section
Seekers of Perl Wisdom
|
|