Dearest Monks

I recently opened a thread about installing Perl on Ubuntu and I've now ended up with a lot more knowledge that when I started that thread thanks to the much appreciated input from you venerable monks. However I am still very confused and need to ask some more question. I thought I would open a new thread to avoid confusion with issues in the previous thread. I hope that is ok

In that thread I was advised to install a local copy of Perl because the Perl that is on Ubuntu is the system Perl. Another suggestion was to use the installed version of Perl but to make sure all of my libraries are installed to a separate folder. I'm actually trying out both approaches for experience and I'm running into problems all over the place :)

I have installed a local version of Perl successfully. The problem I am having with this option is that all of the instruction manuals for all of the things I need to do assume I can use apt-get.
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

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?

Many thanks for your continued help.

In reply to 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.