note
marinersk
<p><blockquote><i>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. </i></blockquote></p>
<p>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<c> lib </c>directory under my various Perl installations. While this might be hinted at by the<c> PATH </c>environment variable (as seen in the example below), this is not assured. You can install Perl in a directory called<c> M:\Booger.x </c>, if you were so inclined.</p>
<p>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<c> SET </c>command:</p>
<p>
<table>
<tr>
<td> </td>
<td align="left" valign="top">
<font color="black"><c>D:\PerlMonks>set | grep -i "perl"</c><br />
</font><font color="red"><c>Path=</c></font><font color="grey"><c>C:\Steve\Utils;C:\cygwin\bin;C:\App\Java\jdk1.7.0_55\bin;</c></font><font color="red"><c>C:\Perl\Perl-5.18.2.1802\site\bin;C:\Perl\Perl-5.18.2.1802\bin;</c></font><font color="grey"><c>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\</c><br />
</font><font color="red"><c>PERL5LIB=C:/Steve/Perl</c></font><font color="grey"><br />
</font><font color="black"><c>D:\PerlMonks></c></font>
</td>
<td> </td>
</tr>
</table>
</p>
<p><b><i>Update:</i></b> This in contrast to the<c> @INC </c>values mentioned by [kcott] above:</p>
<p>
<table>
<tr>
<td> </td>
<td align="left" valign="top">
<code>
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.1802/lib .
D:\PerlMonks>
</code>
</td>
<td> </td>
</tr>
</table>
</p>
1130742
1130809