LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   perl error (https://www.linuxquestions.org/questions/debian-26/perl-error-4175443010/)

tsitras 12-26-2012 12:23 PM

perl error
 
i need to run a perl routine, but i am getting an error. here is the output:
root@squeeze:/usr# chmod a+x script.pl
root@squeeze:/usr# ./script.pl
-bash: ./script.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
root@squeeze:/usr#

what am i missing?

Kustom42 12-26-2012 12:32 PM

Can you post the first line of ./script.pl which shows your shebang/interpreter? That is what is generating the error.

I bet if you did a

Code:

perl script.pl
it would run, or atleast get past the interpreter error.


All times are GMT -5. The time now is 02:39 PM.