#!G:\perl\bin\perl use strict; use warnings; use CGI::Carp qw(fatalsToBrowser); use HTML::Template::Compiled; my $tmpl = HTML::Template::Compiled->new(filename =>'../templates/main.tmpl'); $tmpl->param(content => '../templates/test.tmpl'); print "Content-type: text/html\n\n"; print $tmpl->output();