Do I have that in my perl?

I was looking for a perl library on my system- once I found it, I didn’t know if my perl was using it properly or not.

Here’s how to answer that question: Check if it is in the list:

perl -e 'foreach (@INC) { print "$_\n"; }' | xargs --replace find {} -name "*.pm" -print

To print out all the entries in @INC, the perl library include path:

perl -e 'foreach (@INC) { print "$_\n"; }'

Leave a Reply