Hi, I've done some work in perl before, and i opened my hosting account with TCH so i could further play around with it. I had a script that i had downloaded and been trying to understand and modify.
I uploaded the script and tried to execute it, and i kept getting errors. Through troubleshooting, i went back to a script i knew should work... and it still doesnt. I seem to be missing something, and cannot get anything to work. The debug script i was trying to test with is a simple hello world script.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>\n";
and it gives me the error:
[Mon Dec 20 14:08:01 2004] [error] [client 68.123.5.66] Premature end of script headers: /home/nickhea/public_html/cgi-bin/hw.pl
I've made sure to upload it in ASCII, and converted the file to UNIX line breaks, and made sure it was CHMODed to 755 (as was suggested on various websites about this error--Still nothing).
Any tips on what the issue might be?
Thanks,
Nick