"Question 1: Am i right in saying that if I use apt-get it will install modules for use with the system perl and not my local perl? If i want to install modules for local perl I need to use CPAN. This is what I have been doing"

Correct. Say you installed perl to $HOME/localperl you'd use $HOME/localperl/bin/cpan to install modules for the version of perl you installed rather than the system perl. What problems have you experienced with this?

Update: Also, you may find registering an account here easier to keep on top of your posts.

Update 2: answer the second question.

"The second option as mentioned was to use the system perl but to have all of my libraries in a separate location. The problem I am having here is that I don't know how to configure where apt-get installs a perl module to. Question 2: How do you configure where apt-get installs perl modules?"

If you install using apg-get to install perl modules you're altering the system perl, as discussed yesterday. This is what you want to avoid either by building your own perl as described yesterday (which you've done in Q1) or consult the CPAN documentation:

5) "I am not root, how can I install a module in a personal directory?"

Or see the other advice regarding lib and local::lib


In reply to Re: Very confused about system perl and local perl by marto
in thread Very confused about system perl and local perl by Anonymous Monk

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.