htmpl.cgi

#!/usr/local/bin/perl
use strict;
use HTML::Template;

my $tmpl = HTML::Template->new(filename => 'hello.tmpl');

$tmpl->param(
  NAME => "Palmo",
  LANG => "Perl",
);

print "Content-Type: text/html\n\n", $tmpl->output;

htmpl.cgi J