Perl: See the path of a module
I've been testing various version of a Perl module and I wanted to make sure I was testing with the right one. This code snippet will output the paths of the loaded modules.
perl -MData::Dump::Color -e 'dd(\%INC);'
This example loads Data::Dump::Color
and then outputs the contents of %INC
which contains the paths of all loaded modules.