LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-26-2012, 12:23 PM   #1
tsitras
Member
 
Registered: Mar 2003
Distribution: Debian Squeeze
Posts: 182

Rep: Reputation: 30
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?
 
Old 12-26-2012, 12:32 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Updating PERL or any package depending on PERL gives error message Guus Bonnema Fedora - Installation 3 07-26-2011 07:46 AM
Perl use prima; Prima(perl) (image processing software))error knockout_artist Linux - Software 2 09-11-2007 10:13 PM
perl Error rjcrews Programming 3 12-19-2005 10:53 AM
Yum error: .conflict between perl and perl-NDBM_File zepplin611 Red Hat 3 10-20-2004 10:22 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration