in reply to Upgraded perl but cant get to the new version

Your system's Perl is probably installed as /usr/bin/perl. Any additional perl (specifically 5.8.1) will by default be installed in /usr/local/bin/perl. Your path possibly doesn't include /usr/local/bin, or has it "after" /usr/bin.

I usually add:

export PATH=/usr/local/bin:$PATH
to my .bash_profile script to fix this.

Hope this helps.

Liz

Replies are listed 'Best First'.
Re: Re: Upgraded perl but cant get to the new version
by Clunk (Novice) on Oct 06, 2003 at 12:52 UTC
    Dear all,

    Thank you for your marvellous replies. I am so impressed with this forum, mind if I stick around? You all deserve a repsonse....

    Liz,
    I've been banging my head against the table tying to work this out. You responded and fixed the problem in 7 minutes!

    Shemne,
    Where did I put perl?

    I just downloaded the tar to my user account and unpacked it into a directory there. I then installed from that directory.
    Is there a better way to do this?
    Is it better to install from root?

    Where should I install new moules to?
    I used your "find iname" command from root to get a complete list from the system. Very useful command. I got a very long list but I think these are the main points...

    ./usr/local/bin/perl5.8.1
    ./usr/bin/perl5.6.0

    Tachyon,

    The "locate" command - very useful, thank you. The -u listed hundreds of lines. These are updates? Do you mean things I have added - like modules?

    Any modules I have added do not show now. I only see perl5.8.1. No modules. They were there under 5.6.0

    Roger,

    I like the script. Havn't tried it yet, but I learned something about profiles and login scripts from your text - thanks.

    I'm off to try and find my modules now. I'm sure I'll be back soon...