PERL error trying to run simple HTML page....
Hello all,
I'm so new to PERL it hurts!!!
I'm trying to get an originally plain-HTML page to run with some PERL scripts and have gotten stuck in the very beggining . I'm using:
print <<ENDHTML
...
ENDHTML
and putting the HTML code in there but when I try ro run it, via a browser, I get this error:
<><><><>ERROR<><><><><>
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: formtest.cgi
If you think this is a server error, please contact the webmaster
Error 500
<><><><>END ERROR<><><><><><>
I don't get a location for the error (line,column) so I don't really know where the error is.
<><><><>START CODE<><><><><>
#!/usr/bonsaitools/bin/perl
#
# Test form
print "Content-type: text/html\n\n";
print <<ENDHTML;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/bugzilla/css/over.css">
</head>
<body>
....THE HTML CODE THAT GOES HERE, WORKS STANDALONE NO PROBS...
</body>
</html>
ENDHTML
<><><><><>END CODE<><><><><><>
Any thoughts for this PERL newbie????
Last edited by vous; 08-25-2003 at 08:44 AM.
|