View previous topic :: View next topic |
Author |
Message |
akd -
Joined: 29 Aug 2005 Posts: 2
|
Posted: Mon Aug 29, 2005 12:02 pm Post subject: why doesn't work ? |
|
|
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 |
|
|
sage -
Joined: 08 Feb 2004 Posts: 3 Location: South Africa
|
Posted: Thu Sep 01, 2005 6:06 pm Post subject: |
|
|
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 |
|
|
hitam269 -
Joined: 10 Oct 2005 Posts: 4 Location: Franklin, TN
|
Posted: Tue Oct 11, 2005 2:58 am Post subject: |
|
|
Your shebang line should probably be
#!\perl\bin\perl
That works for me. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Oct 11, 2005 2:21 pm Post subject: |
|
|
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 |
|
|
|