A buddy of mine is trying to run a perl script as a cgi in his school cgi-bin. He's on Sun Solaris and i was hoping someone knew something i didn't (which is almost ALWAYS the case:). I can ssh in and run the script fine from the command line. I found perl (whereis perl) on his machine, so it's not that. A simple hello world script returns internal server errors. His log sez "Premature end of script headers." I chmoded the file to 0755. Uploaded as ascii. Even tried creating a new cgi in pico just to be sure. Here's the code which will not run properly through a browser on Sun Solaris. Am i missing something? Thanks for reading!
#!/usr/bin/perl
use strict;
print "Content-type:text/html\n\n";
print "hello";
Retitled by davido.