in reply to Re: Use global flag when declaring regular expressions with qr?
in thread Use global flag when declaring regular expressions with qr?

If you're building a match or substitute operator, generally better to use String::Substitution than eval.