in reply to Re: What's the difference between the many @INC directories?
in thread What's the difference between the many @INC directories?

Okay, here's what I've been able to piece together from the document you sent me to and other docs via Google. There's still some stuff I'm missing. Please correct me if anything below is wrong.

/etc/perl
I can't figure this one out and Google's no help. Anyone?

/usr/local/lib/perl/5.8.4
For modules installed "by hand" by administrator that are architecture specific.

/usr/local/share/perl/5.8.4
Modules installed "by hand" by administrators that will work across different platforms.

/usr/lib/perl5
For vendor (non-core) modules that are architecture dependent. These modules come pre-packaged and can be installed with apt-get.

/usr/share/perl5
For vendor (non-core) modules that are architecture independent. These modules come pre-packaged and can be installed with apt-get.

/usr/lib/perl/5.8
Core modules, arch. dependent, installed "out of the box"

/usr/share/perl/5.8
Core modules, arch. independent, installed "out of the box"

/usr/local/lib/site_perl
No clue. Anyone?

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon";
$nysus = $PM . $MCF;
Click here if you love Perl Monks

  • Comment on Re^2: What's the difference between the many @INC directories?

Replies are listed 'Best First'.
Re^3: What's the difference between the many @INC directories?
by radiantmatrix (Parson) on Nov 15, 2005 at 16:03 UTC
    /usr/local/lib/site_perl
    IIRC, this is the location for modules related to a site-specific version of Perl. For example, if you compile your own Perl with different options.
    <-radiant.matrix->
    A collection of thoughts and links from the minds of geeks
    The Code that can be seen is not the true Code
    "In any sufficiently large group of people, most are idiots" - Kaa's Law
Re^3: What's the difference between the many @INC directories?
by idsfa (Vicar) on Nov 15, 2005 at 16:30 UTC

    /etc/perl

    It appears to be used for handling conflicts between the packager's expectations and Debian's layout.

    Or as a repository (I find this one icky ... to me, it ought to be in /var!)

    Or for Config files generated at install time.

    (My Google-fu is strong)


    The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon