in reply to
regex alternation
One obvious improvement would be to use the regex modifier o to tell perl that the regex won't change.
Comment on
Re: regex alternation
Replies are listed 'Best First'.
Re^2: regex alternation
by
Anonymous Monk
on Sep 30, 2011 at 10:32 UTC
qr tells perl the regex won't change,
Precompiling qr/.../o question
,
/o is dead, long live qr//!
[reply]
In Section
Seekers of Perl Wisdom