http://qs321.pair.com?node_id=1130940


in reply to Re: Question about the most efficient way to read Apache log files without All-In-One Modules from CPAN (personal learning exercise)
in thread Question about the most efficient way to read Apache log files without All-In-One Modules from CPAN (personal learning exercise)

The source-code to any installed package can also be found in the library directories of your computer. The PERL5LIB environment-variable (or its equivalent, found in some control-panel, in Windows), will tell you where.

Uhm...no. I can assure you CPAN modules are not installed in the directory where my personal Perl modules are stored; but rather, in the libdirectory under my various Perl installations. While this might be hinted at by the PATHenvironment variable (as seen in the example below), this is not assured. You can install Perl in a directory called M:\Booger.x, if you were so inclined.

Also, under Windows, you needn't go to the System Control Panel Environment options screen to examine environment variables; they are still available in the command shell in much the same way they've always been, using the SETcommand:

      D:\PerlMonks>set | grep -i "perl"
Path=C:\Steve\Utils;C:\cygwin\bin;C:\App\Java\jdk1.7.0_55\bin;C:\Perl\Perl-5.18.2.1802\site\bin;C:\Perl\Perl-5.18.2.1802\bin;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management EngineComponents\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\
PERL5LIB=C:/Steve/Perl
D:\PerlMonks>
     

Update: This in contrast to the @INCvalues mentioned by kcott above:

     
D:\PerlMonks>perl -e "print qq(@INC)" C:/Steve/Perl C:/Perl/Perl-5.18.2.1802/site/lib C:/Perl/Perl-5.18.2.18 +02/lib . D:\PerlMonks>