I have tried to use html::template for the first time and tried to run the script shown in the synopsis of cpan documentation.

#!/usr/bin/perl -w
  use HTML::Template;

# open the html template
my $template = HTML::Template->new(filename => 'test.tmpl');

# fill in some parameters
$template->param(HOME => $ENV{HOME});
$template->param(PATH => $ENV{PATH});

# send the obligatory Content-Type and print the template output
print "Content-Type: text/html\n\n", $template->output;

The following error is logged in to error log,
failed to open log file
fopen: Permission denied
[Wed Jun 3 12:38:13 2009] [error] [client]
Premature end of script headers: /cgi-bin/bpo/test.cgi

When I checked with the hosting server admin their reply is they have
restricted the use of FOPEN function and to use WGET or CURL.
Not sure how to resolve this error could someone please help?


Let us help with car news, reviews and more Looking for a new car this winter?