I installed perl 5.8.9, 5.10.1 and 5.12.1 (from source) in /usr/local/perl5 (in that order). Do not accept the defaults, install it the long way. Due to the fact that a) I had the time and b) I had the disk space, I made sure that each version did not reference the earlier versions. This way, I have a "clean" install of each (even though they reside in the same upper level directory. You will find perl5.8.9, perl5.10.1 and perl5.12.1 executables in the basedir/bin directory.

Then I started with the base perl install (using autobundle) and then used the resulting snapshot file to install all base modules to each version (example: "perl5.8.9 -MCPAN -eshell" then "install Snapshot_2010_08_03_01").

Now, you can add whatever modules you want from CPAN.

Do not touch the system install (in /usr/bin and /usr/share/perl5). Simply set your non-root path to include /usr/local/perl5/bin before /usr/bin or use explicit paths. Since you defined the base directory during the install, the PATH environment variable (to find the perl executable) is the only one you need.

Good luck with your project :-)

Update: To get back to base on your system, do "yum reinstall perl*" (I don't use the -y flag, mainly so that I get out of the habit). If you get into the habit of something like "yum -y reinstall XXX", it is easy to forget and do something like "yum -y remove XXX" which will do exactly what you tell it to: remove the package and all of its dependents. As was noted above, using yum to remove perl will remove the X server among other things without prompting. That will ruin your whole day.

Update 2:Clarified warning on yum -y.


In reply to Re^2: Installing/Upgrading 5.8.8 to 5.12.1 by proceng
in thread Installing/Upgrading 5.8.8 to 5.12.1 by snidley

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.