in reply to Re^2: installing perl 5.12.3
in thread installing perl 5.12.3

Make sure that the new perl comes before the old one in the path. Also, your shell may have cached the location of perl and so not "see" the old one even though the $PATH has changed.

You can clear that cache with the hash command in bash, and you can see which perl executable comes first in the path with which perl.

Replies are listed 'Best First'.
Re^4: installing perl 5.12.3
by rob171171 (Acolyte) on Apr 21, 2011 at 09:42 UTC

    I have installed perlbrew and have being advised to

    Well-done! Congratulations! Please add the following line to the end of your ~/.bashrc

    can you tell me where I can edit my .bashrc file>

      Umm? It's telling you exactly which file to edit.
Re^4: installing perl 5.12.3
by rob171171 (Acolyte) on Apr 21, 2011 at 09:31 UTC
    [root@Gandalf ~]# hash hits command 2 /usr/bin/perl 1 /usr/bin/env [root@Gandalf ~]# [root@Gandalf ~]# [root@Gandalf ~]# [root@Gandalf ~]# [root@Gandalf ~]# [root@Gandalf ~]# [root@Gandalf ~]# [root@Gandalf ~]# which perl /usr/bin/perl [root@Gandalf ~]#