in reply to Dynamically generating the replacement part of a substitution

Maybe String::Interpolate can help you?
  • Comment on Re: Dynamically generating the replacement part of a substitution