[Melbourne-pm] Perl stuff
jdthornton at ozemail.com.au
Fri Aug 22 04:03:53 PDT 2008
Hello World in my firefox browser appears!!!!!
At this pt I concede that as a graphics student my photoshop and indesign
skills do not extent to ascii art :) If they did I would draw a guy leaping
in the air like those car ads:
"What a feeling! Perl!"
Thanks to everyone who helped! In particular Ben Hare should get a
bookprize/book voucher or something from perlmongers.
What this now enables me to do that is fantastic is to go through the rest
of the perl tutes on vtc, read books etc BEING ABLE TO SEE THE END RESULT :
that juicy message in the browser.
To make everyone shudder I know so little about computers that it is not
funny. I am certainly the most computer illiterate person to have ever got
apache etc to work with perl.
What a feeling! Perl!
From: Ben Hare [mailto:benhare at gmail.com]
Sent: Friday, 22 August 2008 8:47 PM
To: John Thornton
Cc: melbourne-pm at pm.org
Subject: Re: [Melbourne-pm] Perl stuff
for now, don't worry about modules, get up and running:
change your code to this:
print "Content-type: text/html\n\n";
print "Hello World!\n";
there you go.. you can learn about modules later :)
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
> Error message:
> Premature end of script headers: hello88.cgi
> If you think this is a server error, please contact the webmaster.
> Error 500
> 08/22/08 20:33:53
> Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h
> 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";
> print CGI->header(), "Hello";
> (ie drop the 's' off the word 'headers').
> That was it.
> All three attempts made the error message above.
> Melbourne-pm mailing list
> Melbourne-pm at pm.org
More information about the Melbourne-pm