use strict; use warnings; use HTML::Template::Compiled; use CGI; my $cgi = CGI->new(); my $time = localtime(time); my $template = <
Blah ist $time Key ist Blubb
HTML my $htc = HTML::Template::Compiled->new( tagstyle => [qw/+php/], scalarref => \$template, cache => 0, ); $htc->param( k => $cgi->param('key'), ); print $htc->output;