View previous topic :: View next topic |
Author |
Message |
slipkid -
Joined: 23 Nov 2007 Posts: 8 Location: Ohio
|
Posted: Wed Dec 05, 2007 9:29 am Post subject: Ah fluffinpoopy |
|
|
Woeith is me,This is a case where i can better show you than tell you.Other than the install is by the book.This is the result of the test script
that comes with the download?
CGI: [C:\Perl\bin\perl.exe prl.pl ] URI: /prl.pl Broken pipe
Bareword found where operator expected at prl.pl line 4, near "</head"
(Might be a runaway multi-line // string starting on line 3)
(Missing operator before head?)
Bareword found where operator expected at prl.pl line 16, near "</form"
(Might be a runaway multi-line // string starting on line 8)
(Missing operator before form?)
syntax error at prl.pl line 3, near "title>"
Search pattern not terminated at prl.pl line 19.
CGI: [C:\Perl\bin\perl.exe prl.pl ] URI: /prl.pl Broken pipe.
Funny thing is that the "runaway" error keeps moving to different lines.
Anyhow all I did was copy this into htdocs and the 500's started flyin.
I have read dozens if not more of the other posts but it seems like the
other folks with similar problems all solve it themselves without telling
how they did it, Ahrgg.I really feel like I am being a nuisance posting these
problems but if anyone can help it is you guys....TYIA |
|
Back to top |
|
|
aprelium-beta -
Joined: 24 Jun 2004 Posts: 383
|
Posted: Wed Dec 05, 2007 5:45 pm Post subject: Re: Ah fluffinpoopy |
|
|
slipkid,
You are getting error 500 because Perl is having trouble with your script (mainly syntax errors).
Try posting the script here so that we can check it. _________________ Beta Testing Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
slipkid -
Joined: 23 Nov 2007 Posts: 8 Location: Ohio
|
Posted: Thu Dec 06, 2007 7:01 am Post subject: |
|
|
Well I have since parted ways with the file in question but I tryed a plan
'b' and am getting similar results.As you will probably gather this is straight
from a PERL tutorial site......
#! /C:/perl.exe
print "Content=type:text/html\n\n";
print "<html><head><title>My First Script</title></head>\n\n";
print "<body>\n";
print "<p>Hello World!</p>\n";
print "</body></html>
Correct me if I am wrong, which I obviously am but isnt the 'shebang'
line a linux thing?The path to perl raises questions of its own, at least to me anyhow.I am pretty sure that the above file is as simple as they get,
just for giggles here is the new error list.
CGI: [C:\Perl\bin\perl.exe "Hello World.pl" ] URI: /Hello%20World.pl Broken pipe
Can't find string terminator '"' anywhere before EOF at Hello World.pl line 8.
CGI: [C:\Perl\bin\perl.exe "Hello World.pl" ] URI: /Hello%20World.pl Broken pipe
Can't find string terminator '"' anywhere before EOF at Hello World.cgi line 8.
CGI: [C:\Perl\bin\perl.exe "Hello World.cgi" ] URI: /Hello%20World.cgi Broken pipe
Can't find string terminator '"' anywhere before EOF at Hello World.cgi line 7.
CGI: [C:\Perl\bin\perl.exe "Hello World.cgi" ] URI: /Hello%20World.cgi Broken pipe
This just in - lol ,I was missing a quotation mark so I made the adjustment now i am getting a 404,403. Was ist lose
Any Idea.... |
|
Back to top |
|
|
aprelium-beta -
Joined: 24 Jun 2004 Posts: 383
|
Posted: Thu Dec 06, 2007 6:42 pm Post subject: |
|
|
slipkid,
The last line is missing two characters " and ;. There are also many other typo problems.
Here is a fixed version:
Code: | print "Content-type: text/html\n\n";
print "<html><head><title>My First Script</title></head>\n\n";
print "<body>\n";
print "<p>Hello World!</p>\n";
print "</body></html>"; |
_________________ Beta Testing Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|