Here's an example:
#!/usr/bin/perl use strict; use warnings; use HTML::Template; my $template_file = '<TMPL_VAR NAME="PERLCODE">'; my $t = HTML::Template->new( scalarref => \$template_file ); $t->param( PERLCODE => 'Perl code goes here' ); print $t->output;
In reply to Re: How? Use new() from HTML::Template
by ahmad
in thread How? Use new() from HTML::Template
by newbie00
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |