Charles K. Clarkson a écrit :
sfantar wrote:
: I am starting using HTML::Template modules and I wrote a script with
: the first example within the doc.
: I am not able to see the results of my CGI from my browser. It
: displayed error 500 Internal Server Error.
Sounds like you are not printing the correct headers. Show us
the script for more help, but don't bother those people at
[EMAIL PROTECTED] This is a CGI problem.
HTH,
Charles K. Clarkson
Here is the script which gave me the error mentioned above :
#!/usr/local/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;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>