Hello Perl300,

Since you are running *nix, I'll comment on what I do.

Typically, I have at least 3 or 4 Perls on any *nix boxes that I am the admin for. I use the '/usr/local/bin/' to have a symbolic link to the 'non-system' Perl, which I usually install in '/usr/opt/'. Today, I never touch the system Perl and all updates come from the OS update mechanism.

So let's do an example:

If you want to use 'cpan' on the command line, then do a link to the specific one ( ie, mycpan ). I find it easier to
    myperl -MCPAN -e 'install "..."'

Note 1: I've found problems with Perls that are not owned by root. YMMV.

Note 2: I usually have 2 Perls for each version, 1 with threads and 1 without. On the *nixes I use, threads has a lot of overhead.

Regards...Ed

"Well done is better than well said." - Benjamin Franklin


In reply to Re: [Solved]: How to install modules for local perl without changing anything on system perl? by flexvault
in thread [Solved]: How to install modules for local perl without changing anything on system perl? by Perl300

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.