in reply to Beginner - difference between lib directories in Perl install

You may also see a vendor/lib directory which holds modules written by a third party. It looks like you have ActivePerl installed: it's possible you might get one of those using PPM to install a non-ActiveState module.

I have one with my Strawberry Perl installation:

C:\_\tmp>perl -V ... @INC: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib

You may come across other variations such as this from my Cygwin installation (which uses site_perl instead of site):

$ perl -V ... @INC: /usr/local/lib/perl5/site_perl/5.12.0/cygwin-thread-multi-64int /usr/local/lib/perl5/site_perl/5.12.0 /usr/local/lib/perl5/5.12.0/cygwin-thread-multi-64int /usr/local/lib/perl5/5.12.0

-- Ken

Replies are listed 'Best First'.
Re^2: Beginner - difference between lib directories in Perl install
by Anonymous Monk on Oct 17, 2010 at 12:55 UTC
    You may also see a vendor/lib directory which holds modules written by a third party.

    vendors are those who build and distribute perl binaries, (ActiveState/Strawberry Perl/Redhat)...

    modules which vendors add to the standard perl distribution get installed into vendor directories (sometimes vendors reuse site directories).

    Modules you (or your admin) install go into site directories.

    Modules installed in privlib are those which come with perl (core modules).

    $ perl -V:install.* installarchlib='D:\strawberry\perl\lib'; installbin='D:\strawberry\perl\bin'; installhtml1dir=''; installhtml3dir=''; installhtmldir=''; installhtmlhelpdir=''; installman1dir=''; installman3dir=''; installprefix='D:\strawberry\perl'; installprefixexp='D:\strawberry\perl'; installprivlib='D:\strawberry\perl\lib'; installscript='D:\strawberry\perl\bin'; installsitearch='D:\strawberry\perl\site\lib'; installsitebin='D:\strawberry\perl\site\bin'; installsitehtml1dir=''; installsitehtml3dir=''; installsitelib='D:\strawberry\perl\site\lib'; installsiteman1dir=''; installsiteman3dir=''; installsitescript='D:\strawberry\perl\site\bin'; installstyle='lib'; installusrbinperl='undef'; installvendorarch='D:\strawberry\perl\vendor\lib'; installvendorbin='D:\strawberry\perl\bin'; installvendorhtml1dir=''; installvendorhtml3dir=''; installvendorlib='D:\strawberry\perl\vendor\lib'; installvendorman1dir=''; installvendorman3dir=''; installvendorscript='D:\strawberry\perl\bin';