http://www.perlmonks.org?node_id=781391


in reply to Re^2: Use of %INC ?
in thread Use of %INC ?

I've typically used it for either finding out what modules are loaded, or for trying to track down where they're loaded from (when you're cleaning up an old machine, and can't figure out why you're not getting the version of the module you're expecting.)

I keep the following one-liner shell script around as 'whichpm' :

echo 'print map { sprintf( "%20s : %s\n", $_, $INC{$_} ) } sort keys %INC; print "\n'$1' version : $'$1'::VERSION\n\n"' | perl "-M$1"