I'm getting the below message when trying to run a perl script:
-bash-3.00$ ./search.pl
: bad interpreter: No such file or directory
But if I run it straight through perl then it's fine:
-bash-3.00$ perl search.pl
Content-type: text/html
So the usual problem is odd characters (e.g. CR / LF) in the shebang line right? But I complelely deleted and rewrote the shebang line and I'm still getting the error. opening the file using vi shows no odd characters. Path to perl seems to be fine:
-bash-3.00$ which perl
/usr/bin/perl
Head of perl script:
#!/usr/bin/perl
use Mysql;
require "subs.cgi";
&parse_form();
Does anyone know what's wrong?
C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
-bash-3.00$ ./search.pl
: bad interpreter: No such file or directory
But if I run it straight through perl then it's fine:
-bash-3.00$ perl search.pl
Content-type: text/html
So the usual problem is odd characters (e.g. CR / LF) in the shebang line right? But I complelely deleted and rewrote the shebang line and I'm still getting the error. opening the file using vi shows no odd characters. Path to perl seems to be fine:
-bash-3.00$ which perl
/usr/bin/perl
Head of perl script:
#!/usr/bin/perl
use Mysql;
require "subs.cgi";
&parse_form();
Does anyone know what's wrong?
C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!