I strongly recommend not messing with the system perl on Linux!

I agree in general. But there is nothing evil or risky in the system perl IF you use it as intended by the system (i.e. the Linux distribution, but the same also applies to MacOS and the *BSDs).

In other words, don't uninstall Perl module packages installed by the distribution installer, install modules using the distribution tools from the distribution packages, and do not install anything directly from CPAN. This effectively limits you to the Perl modules packaged by the distribution. But there are generally a lot of Perl modules available, plus the distribution takes care of installing dependencies (e.g. libxml, database drivers, graphics libraries, and so on). This way, installing Perl modules can be very convenient.

If you prefer to tweak perl as you like, if you want to install the most recent perl modules from CPAN, or if you simply don't like to depend on other people to package Perl modules for you, then yes, stay away from the system perl and compile your own perl.


My background is Slackware Linux, which is one of very few distributions that do NOT depend on Perl. Installing perl is recommended, but optional. (You need perl to compile the Linux kernel, though.) So I usually use the system perl. Recently, I'Ve switched to Debian stable, after using Debian (and Ubuntu) at work for years. So far, I found Debian packages for almost all Perl modules that I needed. For the few (pure-perl) modules that don't have a Debian package, I ignored my own advice from above and installed them from CPAN.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^4: How do I install a Perl module? by afoken
in thread How do I install a Perl module? by harangzsolt33

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.