in reply to Re^3: Precompiling substitution regex
in thread Precompiling substitution regex

Speaking of evaling substitution into existence, if you trust the OP to specify the regex and substitution string, and you're not validating those strings

you might as well switch the interface/api to needing subs , so the user specifies the whole sub instead of parts to build one

on the other hand, String::Interpolate/String::Interpolate::RE