#!/usr/bin/perl use HTML::Template; my $template = HTML::Template->new(filename => 'hello.tmpl'); $template->param(MESSAGE => "HTML::Template"); print "Content-Type: text/htmlnn"; print $template->output;