http://www.perlmonks.org?node_id=998236


in reply to problem installing HTML::Template

Give this a try:
#!/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;