To find a perl module's location, run

perl -M$ModuleName -e'print $_ . " => " . $INC{$_} . "\n" for keys %INC'

Replace $ModuleName with the perl module name. This is case sensitive.

Eg:

# perl -Mlocal::lib -e'print $_ . " => " . $INC{$_} . "\n" for keys %INC'
warnings.pm => /usr/share/perl5/warnings.pm
local/lib.pm => /usr/local/share/perl5/local/lib.pm
strict.pm => /usr/share/perl5/strict.pm
Config.pm => /usr/lib64/perl5/Config.pm

See Also[edit]