beng has asked for the wisdom of the Perl Monks concerning the following question:
Just a simple script to help illustrate the problem I'm facing.#!/usr/local/bin/perl print "Content-type: text/html\n\n"; print "<H1>Hello World</H1>\n";
[root@www cgi-bin]# ./test.pl : bad interpreter: No such file or directory
I checked the path of PERL and that's correctly entered. So couldn't be any path issues.[root@www cgi-bin]# perl test.pl Content-type: text/html <H1>Hello World</H1>
Is there anything that I have not done correctly? Why is it that I require a "-w" in this server, while not in any of the rest of my apache servers with PERL??#!/usr/local/bin/perl -w print "Content-type: text/html\n\n"; print "<H1>Hello World</H1>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bad interpreter: No such file or directory
by gellyfish (Monsignor) on Jul 22, 2004 at 08:17 UTC | |
by Fletch (Bishop) on Jul 22, 2004 at 10:53 UTC | |
|
Re: bad interpreter: No such file or directory
by atcroft (Abbot) on Jul 22, 2004 at 08:15 UTC | |
|
Re: bad interpreter: No such file or directory
by trantor (Chaplain) on Jul 22, 2004 at 08:48 UTC | |
|
Re: bad interpreter: No such file or directory
by Anonymous Monk on Jun 07, 2013 at 16:05 UTC |