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

hi to all iam using perl, v5.8.0 built for i386-linux-thread-multi.
How can i upgrade v5.8.+ ?.If i download and upgrade latest version of perl is there any problem?.
Please any body suggest me.

Replies are listed 'Best First'.
Re: how to upgrade perl version
by Tanktalus (Canon) on Sep 16, 2006 at 15:52 UTC

    That all depends on your distro, and on how you plan to approach it.

    In many ways, one ideal would be for you to upgrade perl via whatever your distro uses for updates. If you've never (or rarely) built anything from its source, the concept can be intimidating, and this method allows you to avoid doing it. However, even if you are adventurous, this method also has the advantage of upgrading your system perl in a way where everything should continue to work. You may have to upgrade things like cups or apache or anything else that uses perl, but you'll know you're getting yourself into a situation that is still supported, with all the added benefits and features (and bugfixes!) of newer perls.

    On the other hand is the idea of compiling and installing your own private perl. By "private" I don't necessarily mean that it's not globally available on your machine, but that it's not maintained by your distro. It can be in ~/bin, or it can be in /usr/local/bin. But, whatever you do, do not install it to /usr/bin. That's because it will then overwrite the system perl that your distro depends on. They may have worked around bugs (or may even depend on them!), so you really don't want to touch it except via your distro-certified methods.

    In this case, just download the source to the latest version and follow the instructions. It can take a while to configure, and then even longer to compile, but when you're done, hopefully you'll have two perls on the system - one for the system, and one for your applications and use.

    Good luck!

Re: how to upgrade perl version
by aquarium (Curate) on Sep 16, 2006 at 15:04 UTC
    just a guess but you could try reading the README or INSTALL file that comes with whatever version you want.
    the hardest line to type correctly is: stty erase ^H
Re: how to upgrade perl version
by wazoox (Prior) on Sep 17, 2006 at 19:50 UTC
    As Tanktalus said, you'd better go with the standard way your distro uses. If you're using RedHat, Mandrake/Mandriva, SuSE, go find a proper rpm (http://freshrpms.net is a good start).
    If you're using Debian, Ubuntu or another Debian based distro, simply run apt-get update then apt-get install perl.
    If you're using a slackware, you can install and use slapt-get or swaret, or simply download the perl package from a mirror, and install it with upgradepkg perl-5.8.8-i486-6.tgz