On Monday, February 3, 2003, at 02:13 PM, Sam Mauntz wrote:
Hi,#!/usr/bin/perlprint "<HTML>\n"; print "<HEAD>\n"; print "<TITLE>Perl Test Page</TITLE>\n"; print "</HEAD>\n"; print "<BODY>\n"; print "Perl Test Page\n"; print "</BODY>\n"; print "</HTML>\n"; My problem is that when I try to run it from a browser I get a 500 web error message. Does anyone have any ideas what might be causing this?
Are you printing your http header properly? Make sure the following is included after the shebang, but before your html:
print "Content-type: text/html\n\n";
GmG