expand template text with embedded perl
