Don't ask to ask, just ask | |
PerlMonks |
Re^2: The 'g' modifier in compiled regexby bart (Canon) |
on Apr 09, 2007 at 09:23 UTC ( [id://608940]=note: print w/replies, xml ) | Need Help?? |
Likewise, the /e modifier is a modifier for the substitution step of s///, which is even one step further away from the regex (qr//) than /g, so that even m//can't use it.
In Javascript, that borrowed a lot from Perl, the /g is indeed attached to the regex for replace, but IMnsHO, that was a design mistake. It should have been a property, or a separate parameter, of replace.
In Section
Seekers of Perl Wisdom
|
|