[Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Premature end of script headers: helloworld.tmpl.pl [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Bad name after privlibexp' at C:/wamp/perl/lib/Config.pm line 1219.\r [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Compilation failed in require at C:/wamp/perl/lib/DynaLoader.pm line 25.\r [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/wamp/perl/lib/DynaLoader.pm line 25.\r [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Compilation failed in require at C:/wamp/perl/lib/Digest/MD5.pm line 12.\r [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Compilation failed in require at C:/wamp/perl/lib/HTML/Template.pm line 1035.\r [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/wamp/perl/lib/HTML/Template.pm line 1035.\r [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Compilation failed in require at C:/wamp/www/helloworld.tmpl.pl line 6.\r [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/wamp/www/helloworld.tmpl.pl line 6.\r [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/helloworld.tmpl.pl #### #!c:/wamp/perl/bin/perl.exe ## ## HTML template Hello World ## use strict; use HTML::Template; my $that_famous_string = 'Hello, world!'; # open the html template my $template = HTML::Template->new(filename => 'helloworld.tmpl.html'); # fill in some parameters $template->param(THAT_FAMOUS_STRING => $that_famous_string); # send the obligatory Content-Type print "Content-type: text/html\n\n"; # print the template print $template->output;