simple script
I'm just playing around with CGI, trying to create a simple script, and I keep getting an Internal Server Error for the code below. I checked all the permissions and everything. What's wrong with it?
#!/usr/bin/perl
$testnum=50;
$teststring='test';
$testsentence="This is just a $teststring";
print "Content-type: text/html\n\n";
print <<ENDHTML;
<HTML>
<HEAD>
<TITLE>Variable Test</TITLE>
</HEAD>
<BODY>
$testnum
<BR>
$teststring
<BR>
$testsentence
</BODY>
</HTML>
ENDHTML
|