perl - What are the various directories in @INC used for? -


I will be able to help understand that what module do I have if I understand that module module @INC

Under Windows, under ActiveState it is quite clear

  c: / pearl / lib c: / pearl / site / lib  

first There is stuff set up through PLM, but am I right?

However, under Debian, it seems too complex

  / etc / perl /usr/local/lib/perl/5.8.4 / usr / local / share / Perl / 5.8.4 / usr / lib / perl5 / usr / share / perl5 /usr/lib/perl/5.8 / usr / share /perl/5.8 / usr / local / lib / site_perl  
< P> What is the reason for so many directories and where it goes.

Based on the files in these directories, and my knowledge of Pearl, I would say that they broke like this

  • / etc / perl - Some Pearl modules write configuration files, these are two examples and there are modules in the distribution. Debian-based machines store these config files here.
  • /usr/local/lib/perl/5.8.4 - This is where platform-specific files installed outside the package system.
  • /usr/local/share/perl/5.8.4 - This is where platform-independent files installed outside the package system.
  • / usr / lib / perl5 - this is where platform-specific files run by the package system run.
  • / usr / share / perl5 - this is where platform-independent files installed by the package system.
  • / usr / lib / perl / 5.8 - These are platform-specific files that are part of the original
  • / usr / share / perl /5.8 - These are platform-free main parts of files
  • / usr / local / lib / site_perl - this is where you install your own module (If they do not have CPAN style installer, which they really want).

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -