Do not "upgrade" your system Perl. It belongs to the system and many system tools rely on it. You will break, for instance, apt-get by "upgrading" your system Perl to Perl 5.10, if you don't take speical care.

For your personal needs/applications, I recommend compiling your own version of Perl, and configuring it to use /opt/perl as its base directory. I keep various versions of Perl there. See the README file of the Perl distribution for how to do a local installation of Perl. The incantation there is all you nee.

I created a perl usergroup and added my user into it. That usergroup has all rights to /opt/perl and thus I can install new modules via CPAN there without needing to switch to root.

There is a downside to this approach - you can't use the Debian packaging environment anymore. But if you need stuff outside of Debian, it's best to avoid the Debian packaging for that. All OS packaging mechanisms are all-or-nothing in my opinion - either you exclusively use them or it's better to avoid them alltogether. Personally, I install the "third party" libraries like libxml2 etc. through the Debian mechanism, but compile my modules for my 5.10 myself using cpan. I also install the Perl libraries for the stock Perl, but only through the Debian mechanism.


In reply to Re: installing Perl 5.10 on Debian by Corion
in thread installing Perl 5.10 on Debian by John M. Dlugosz

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.