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.