|
|
| XP is just a number | |
| PerlMonks |
Re: Re^2: meaning of /o in regexesby BrowserUk (Pope) |
| on Dec 06, 2002 at 17:00 UTC ( #218100=note: print w/ replies, xml ) | Need Help?? |
|
Thankyou diotalevi++. That is exactly the sort of answer I was looking for and it confirms my suspicions based on some fairly dodgey benchmarking. No matter how hard I tried to isolate the benefits of qr//'ing or /o'ing, those benefits always seemed to disappear whenever I attempted to combine one or more pre-compiled regexes with each other or with some non-compiled stuff. In fact, I sometimes detected a penalty from using pre-compiled regexes other than stand-alone, though the differences were too small to quantify with any accuracy. Okay you lot, get your wings on the left, halos on the right. It's one size fits all, and "No!", you can't have a different color.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||