Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: broke my perl? :(

by marto (Cardinal)
on Aug 25, 2010 at 09:17 UTC ( #857119=note: print w/replies, xml ) Need Help??


in reply to broke my perl? :(

"Suddenly i get this line every time I try to use perl"

Do you mean everytime you run your script (if so can you open it in vi and ensure there are no special characters at the end of the shebang line, e.g. ^M) or are you able to run perl -v

Does the following output anything?

which perl

does history show you removing /usr/bin/perl ?

Replies are listed 'Best First'.
Re^2: broke my perl? :(
by megnetz (Novice) on Aug 25, 2010 at 09:21 UTC
    danlab@danlab-laptop:~/BAMs/hela_kromosomer$ perl -v bash: /usr/bin/perl: /gsc/bin/perl: bad interpreter: No such file or directory danlab@danlab-laptop:~/BAMs/hela_kromosomer$ which perl /usr/bin/perl history does not show me removing perl. And no matter what script I try to run it says this no such file or directory.
      bash: /usr/bin/perl: /gsc/bin/perl: bad interpreter: No such file or directory

      Presumably, /usr/bin/perl is a wrapper script that has /gsc/bin/perl in its shebang line, and the latter no longer exists.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://857119]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2020-12-05 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?