#!/usr/bin/perl BEGIN { $| = 1; $^W = 1; } use strict; use autodie; use warnings; use HTML::Template; my $that_famous_string = 'Hello, world!'; my $tmpl = "<TMPL_VAR NAME=THAT_FAMOUS_STRING>\n"; my $template = HTML::Template->new_scalar_ref( \$tmpl, strict => 1, debug => 1, ); $template->param(THAT_FAMOUS_STRING => $that_famous_string); print "Content-Type: text/html\n\n"; print $template->output;
In reply to Re: problem installing HTML::Template
by Khen1950fx
in thread problem installing HTML::Template
by teddyttas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |