Expand template text with embedded Perl
