in reply to
How to do regex backreferences within $variable replacement text?
String::Interpolate
does what you want, although many people will suggest the use of a template system.
Comment on
Re: How to do regex backreferences within $variable replacement text?
In Section
Seekers of Perl Wisdom