in reply to find filesystem path of module from command line
I don't think that the other solutions posted take into account any changes to @INC that you might make using $PERL5LIB or use lib.
I'd use the contents of the %INC hash. The keys of the hash are the module names and the values are the corresponding paths. For example:
--perl -MCGI -le "print $INC{'CGI.pm'}"
"The first rule of Perl club is you don't talk about Perl club."
|
|---|