why doesn't work ?

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


Joined: 29 Aug 2005
Posts: 2

PostPosted: Mon Aug 29, 2005 12:02 pm    Post subject: why doesn't work ? Reply with quote

I have Perl installed in C:\Perl. I have checked "Resolve interpreter using the #! line", I have "C:\Perl\bin\perl.exe" in "Interpreters" with "pl" and "cgi" for "Associated Extension" and "/*.pl" and "/*.cgi" in "Script Paths".I've checked "Enable Scripts Execution".There is "Index.pl" in "Index Files". I put a file "hello.pl" in htdocs with the code:

#!/usr/local/bin/perl

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

print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>BINGO</TITLE>\n";
print "</HEAD>\n";
print "<BODY>\n";
print "uraaaa!\n";
print "</BODY>\n";
print "</HTML>\n";

and I've got #!/usr/local/bin/perl print "Content-Type: text/html\n\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "uraaaa!\n"; print "\n"; print "\n"; after execution.
What is wrong ?!
Back to top View user's profile Send private message
sage
-


Joined: 08 Feb 2004
Posts: 3
Location: South Africa

PostPosted: Thu Sep 01, 2005 6:06 pm    Post subject: Reply with quote

Hi there,
My 2c worth:
Your "Resolve interpreter using the #! line" is conflicting with what you then put into your scripts, which says: find Perl in the directory /usr/local/bin/perl, which is a typical place where Perl is installed on Un*x systems...
This line in a Perl script is typically called the "shebang"

I suggest you just unselect the "Resolve interpreter using the #! line" option, and try again OK?

rgds
Sage
Back to top View user's profile Send private message Visit poster's website
hitam269
-


Joined: 10 Oct 2005
Posts: 4
Location: Franklin, TN

PostPosted: Tue Oct 11, 2005 2:58 am    Post subject: Reply with quote

Your shebang line should probably be

#!\perl\bin\perl

That works for me.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Oct 11, 2005 2:21 pm    Post subject: Reply with quote

Disable "Resolve interpreter using the #! line" because it is conflicting with the Interpreter settings as Sage explained.
_________________
Support 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