How can I print out my include path for my Perl environment?

By Alvin J. Alexander, devdaily.com

Help, I need to install a Perl module, and I need to know what my "include" path is? Can you help?

This should work for you:

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 .

devdaily logo