dcoleyoung has asked for the wisdom of the Perl Monks concerning the following question:

Hi, This is probably and easy question but I couldn't find it in past nodes. I downloaded and installed 5.8.7 (on Mandrake 10.1) and ran all the config and make commands successfully. The problem is /usr/bin/perl still invokes the old version 5.8.6. It was suggested to me to create a symlink to the new executable. Is there a config file to change instead? Thanks! Dan

Replies are listed 'Best First'.
Re: Upgrade to 5.8.7 using symlink?
by tirwhan (Abbot) on Nov 29, 2005 at 15:28 UTC

    No, no configuration file, your system will execute whichever perl version it encounters first in your path (or the one you explicitly specify). Check your $PATH with

    echo $PATH

    , if /usr/local/bin appears before /usr/bin you can get away with creating a symlink from /usr/local/bin/perl to your new perl executable. That way you can call the new version with perl or /usr/local/bin/perl or call the older version with /usr/bin/perl. You may get confusing behaviour if you do that though, because scripts and/or libraries may call a different version of perl than you're expecting.


    Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan