Gary Stainburn wrote:
>
> This is what you get when you run a CGI and the cgi terminated before
> generating any valid output. Usually this happens if the perl script
> doesn't compile and therefore doesn't run.
>
> try 'perl -c <script>' to see if it compiles okay
if your script compiles without errors, then this error usually means
you forgot to include the content-type header:
#!/usr/bin/perl
print "hello world<br>";
exit();
will compile, but will not send output to the browser.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "hello world<br>";
exit();
will compile and run in a browser.