4

In the Strawberry Perl distribution for Win32, what is the difference between perl\lib and perl\site\lib?

When CPAN modules are installed, are the files all stored in perl\site\lib by default? Is perl\lib reserved for modules that come with the standard Perl distribution?

Sinan Ünür
  • 116,958
  • 15
  • 196
  • 339
Damien
  • 1,161
  • 2
  • 19
  • 31

1 Answers1

12

The lib directory is for things that are part of the core Perl distribution. The site/lib directory is for things that have been added -- either by the distribution (ActivePerl, Strawberry Perl, etc.) or by the user/site administrator (installs from CPAN, PPM, etc.)

Michael Carman
  • 30,628
  • 10
  • 74
  • 122
  • Thanks Michael. Your explanation matches my understanding. – Damien Aug 30 '09 at 11:56
  • 3
    To add to this, Strawberry is really doing a somewhat bad thing by putting it's vendor-bundled stuff into site. This will be fixed in the near future (October release) – Adam Kennedy Oct 13 '09 at 01:43
  • 1
    My understanding was that Strawberry would be considered the vendor here and stuff they add should go to vendor/lib, but the answer seems to say they belong at site/lib. Is my interpretation wrong? – Sundar R Sep 04 '13 at 09:29