[Melbourne-pm] Perl stuff

Ben Hare benhare at gmail.com
Fri Aug 22 03:46:37 PDT 2008


hey mate,

for now, don't worry about modules, get up and running:

change your code to this:

---

#!"C:\xampp\perl\bin\perl.exe" -w

print "Content-type: text/html\n\n";

print  "Hello World!\n";

__END__

---

there you go.. you can learn about modules later :)

Ben.



On Fri, Aug 22, 2008 at 8:39 PM, John Thornton
<jdthornton at ozemail.com.au> wrote:
>
>
>      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
>
> _______________________________________________
> Melbourne-pm mailing list
> Melbourne-pm at pm.org
> http://mail.pm.org/mailman/listinfo/melbourne-pm
>


More information about the Melbourne-pm mailing list