my $output = "Content-type: text/html\n\n"; my $file = 'index.html'; my $vars = { title => "Hello World\n" }; my $template = Template->new({ INCLUDE_PATH => 'C:/Apache2/htdocs/gelna/templates' } ); $output .= $template->process($file, $vars) || die "Template process failed: ", $template->error(), "\n"; print $output;