in reply to Digging interpolation deeper

There are already large numbers of templating systems for Perl on the CPAN. Why waste your own time inventing another one?

But if you insist, you should probably look at the substitution operator, s/// and, particularly, the /e switch.

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me