I usually don't have to deal much with the code that is using the perl, so my techniques are more geared to maintaining the trees. Whenever I build a package (yes *every* time), I build it with a version specific directory.
/usr/site/perl-5.8.0
(or something) Then the active perl is created with a symlink
/usr/site/perl -> perl-5.8.0
Finally, individual binaries are linked in /usr/local/bin
/usr/local/bin/perl -> /usr/site/perl/bin/perl
Now if I want to create a new perl, I build it in a standalone environment.
/usr/site/perl-5.8.2
Anyone that wants to can simply try this version out by using a /usr/site/perl-5.8.2/bin/perl in their program. When the time comes, we announce that the active version will change. Anyone that needs to use it can add an explicit version to their script. Then we activate it.
rm /usr/site/perl ln -s perl-5.8.2 /usr/site/perl
Most of the time, there's no additions/subtractions required for the links in /usr/local/bin. More work on the front end (especially the links into /usr/local/{bin,lib,..}), but very handy later. Now most scripts simply make use of the new code, while those with other requirements can easily use the old one.

In the past I've tried sharing modules between versions, but I've generally found it easier to simply rebuild all the modules for the new version. Costs a little diskspace.


In reply to Re: Smooth perl upgrades by Anonymous Monk
in thread Smooth perl upgrades by saintmike

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.