http://www.perlmonks.org?node_id=857134


in reply to Re^2: broke my perl? :(
in thread broke my perl? :(

Is there anything else I can do before reinstalling Ubuntu?

You can try

sudo aptitude reinstall perl

I don't know if that will help, but it's certainly worth a try.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^4: broke my perl? :(
by megnetz (Novice) on Aug 25, 2010 at 11:25 UTC
    Thanks! Worked like a charm! The /usr/bin/perl is still the old script i copied there but  perl -v again gives reasonable output. I guess this means apt-get is now separate from perl in newer ubuntu (i have lucid_lynx).

    Another question, now I have created a new directory for my own scripts. How can I direct these scripts to perl since perl is no longer in /usr/bin/perl and neither /gsc/bin/perl?

      "Another question, now I have created a new directory for my own scripts. How can I direct these scripts to perl since perl is no longer in /usr/bin/perl and neither /gsc/bin/perl?"

      Going back to my earlier reply, what does which perl show now? If you've reinstalled perl /usr/bin/perl should not be a script you put there previously.

        Thank you, just realized that after posting. It's now in /usr/local/bin/. So I hope everything is fine and dandy. Though I'm a bit afraid to restart my computer. Maybe I should make some backup...