By Alvin Alexander. Last updated: June 4, 2016
Help, I need to install a Perl module, and I need to know what my Perl "include" path (library path) is?
Here's a simple way to print your Perl include path from the command line:
perl -e "print qq(@INC)"
You can just run that command from the Unix/Linux or DOS command line. The output I get from this command on my Windows PC looks like this:
C:/Perl/lib C:/Perl/site/lib .
The output I get on a nearby Linux server looks like this:
/usr/lib/perl5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .