Ah fluffinpoopy

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
slipkid
-


Joined: 23 Nov 2007
Posts: 8
Location: Ohio

PostPosted: Wed Dec 05, 2007 9:29 am    Post subject: Ah fluffinpoopy Reply with quote

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 View user's profile Send private message Yahoo Messenger
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Wed Dec 05, 2007 5:45 pm    Post subject: Re: Ah fluffinpoopy Reply with quote

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 View user's profile Send private message Send e-mail
slipkid
-


Joined: 23 Nov 2007
Posts: 8
Location: Ohio

PostPosted: Thu Dec 06, 2007 7:01 am    Post subject: Reply with quote

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 View user's profile Send private message Yahoo Messenger
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Thu Dec 06, 2007 6:42 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group