In the process of bundling up a load of perl modules for deployment on a load of production machines, I was reminded of the sheer volume of subdirectories that seem to exist under your install PREFIX:

devapp2:~/Modules/lib$ find * -type d | egrep -v [A-Z] | fgrep -v libw +ww-perl | sed -e 's/^.\///' site_perl site_perl/5.6.1 site_perl/5.6.1/sun4-solaris site_perl/5.6.1/sun4-solaris/auto 5.6.1 5.6.1/sun4-solaris 5.6.1/sun4-solaris/auto perl5 perl5/5.6.1 perl5/5.6.1/sun4-solaris perl5/5.6.1/sun4-solaris/auto perl5/site_perl perl5/site_perl/5.6.1 perl5/site_perl/5.6.1/sun4-solaris perl5/site_perl/5.6.1/sun4-solaris/auto

Now, obviously the $ARCH and $VERSION dirs make sense, as does 'auto'; but why the need for perl5 / site_perl / perl5/site_perl? And why are modules assigned seemingly at random between those 4 directories?

Apologies in advance if this is a FAQ; but it's something I first noticed a long time ago, and have yet to find1 any explanation for.

1: google is rather unhelpful here; searching for things like 'perl module install location perl5 site_perl' gives you lots of info / problems about installing specific perl modules, as one might expect.


In reply to Perl module install sub-directories: perl5, site_perl, perl5/site_perl by kilinrax

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.