in reply to Evaluate variable while using

So many ways to re-invent templates ... - if you need this in more than one place, consider using one of the template engines from CPAN, like Template or Text::Template instead of using one of those ad-hoc solutions.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)