[Melbourne-pm] Perl stuff
John Thornton
jdthornton at ozemail.com.au
Fri Aug 22 03:39:16 PDT 2008
Now I have got this error message in the last 3 attempts:
Server error!
The server encountered an internal error and was unable to complete your
request.
Error message:
Premature end of script headers: hello88.cgi
If you think this is a server error, please contact the webmaster.
Error 500
localhost
08/22/08 20:33:53
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color
PHP/5.2.6
******
I tried these 3 versions:
#!"C:\xampp\perl\bin\perl.exe" -w
use CGI;
print "Hello World!";
*************
and varying the last line with CGI-> header or CGI->headers or whatever it
was that was suggested.
Try changing this line:
print CGI->headers(), "Hello";
To
print CGI->header(), "Hello";
(ie drop the 's' off the word 'headers').
******
That was it.
******
All three attempts made the error message above.
John
More information about the Melbourne-pm
mailing list