Admittedly a long while ago, FunkyMonk wrote in the follow-up posting to discussion topic ""use lib" and architecture-specific paths":

I looked a lttle harder and it seems the arch dirs are defined to be the same as non-archdirs (this is Debian Testing, BTW):       
    perl -V (with snippage):
(snip output)

There's a tool someone wrote precisely because many of us have a hard time understanding the layout of perl installations as an abstraction rather than as simply something they've seen on one familiar machine or so: showPerlDirConfig. Run this script and let it display the way that the directories are laid out for your particular installation.

Here's a quickly-written explanation of what FunkyMonk reported seeing, from a fellow user of Debian (and derivatives)...

Debian Perl is built by the Debian Perl package contributor in a manner that accords with Debian filesystem hierarchy policy as well as not being in any way contrary to Perl "policy" with regards to dir layout (Perl's configure supports laying out the dirs pretty much any way the user sees fit).

That (Debian) policy states, sensibly IMHO, that things which have architecture-dependent characteristics go under a lib/ parent while things that have a cross-architecture or are IOW "architecture-neutral" go under a share/ parent. So your arch perl directories are /usr/lib/perl/5.8 and /usr/lib/perl5 and your non-arch are /usr/share/perl/5.8 and /usr/share/perl5/.

The apparent duplication (2 each of non-/usr/local/ directory parents, for arch and non-arch) is because of the use of vendordirs in the Debian package layout.

In case it isn't obvious, the whole notion of a convention of having a major filesystem branch named share/ is that stuff in it is able to be shared between different computer architectures. It has nothing to do with "sharing" between users, as some might think.

Regards.

    Soren Andersen / “somian” / “perlspinr”


In reply to Re^4: "use lib" and architecture-specific paths by Intrepid
in thread "use lib" and architecture-specific paths by perrin

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.