in reply to Interpolation of variables in stored HTML

Netwallah already mentioned HTML::Template. Template Toolkit and Template::Tiny are options as well.
  • Comment on Re: Interpolation of variables in stored HTML