in reply to Re^2: updating a variable call in a hash table
in thread updating a variable call in a hash table

You could include some markup text in the string. When you come to render the HTML replace the markup text with the variable value. In its simplest version that could just entail using a regex.

But of course, what you are building is your own template system. When you need to go beyond a couple of trivial variable substitutions you'll realize you should have used a module in the first place. Being really lazy often entails a little more work up front.


Perl's payment curve coincides with its learning curve.
  • Comment on Re^3: updating a variable call in a hash table