in reply to find filesystem path of module from command line

How about:
% perl -le 'print for @INC' /usr/local/perllibs /usr/local/lib/perl5/5.6.1/i586-linux /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i586-linux /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .
At least that gives you a list to work from.... You can also examine the output of perldoc perllocal which will provide information about locally installed modules:
% perldoc -t perllocal | grep -A 8 Digest::MD5 Tue Aug 28 15:29:48 2001: "Module" Digest::MD5 * "installed into: /usr/local/lib/perl5/site_perl/5.6.1" * "LINKTYPE: dynamic" * "VERSION: 2.16" * "EXE_FILES: "

-Blake

Replies are listed 'Best First'.
Re: Re: find filesystem path of module from command line
by Anonymous Monk on Nov 21, 2001 at 06:29 UTC
    I'm aware of how Perl looks for modules and could figure it out based on such output, but am curious if there is a more direct way. Something like the (caller(0))1 function, but where I could supply an argument of module.pm. Any ideas? Thanks for your help.
Re: Re: find filesystem path of module from command line
by Anonymous Monk on Nov 21, 2001 at 06:49 UTC
    great! thanks!