logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mpath - display the full path to a perl module (installed locally)

Author

       Neil Bowers <neilb@cpan.org>

Description

       mpath displays the full path to a perl module on the local system.  It uses the "module_path()" function
       from Module::Path to get the path.

       If one of the module wasn't found, mpath will exit with the exit code 1 and print the following message
       (you can silence it with the option --quiet):

         % mpath Foo::Bar
         Foo::Bar not found

       or:

         % mpath Moose Foo::Bar
         /usr/local/lib/perl5/site_perl/5.16.0/darwin-2level/Moose.pm
         Foo::Bar not found

Example

         % mpath Module::Path
         /usr/local/lib/perl5/site_perl/5.16.0/Module/Path.pm

         % mpath --full Module::Path
         Module::Path /usr/local/lib/perl5/site_perl/5.16.0/Module/Path.pm

         % mpath Moose Moo
         /usr/local/lib/perl5/site_perl/5.16.0/darwin-2level/Moose.pm
         /usr/local/lib/perl5/site_perl/5.16.0/Moo.pm

Name

       mpath - display the full path to a perl module (installed locally)

Options

-h, -?, --help
           Print this help message and exit.

       -f, --full
           Print module name.

       -q, --quiet
           Don't print any error when one of the module requested could not be found.

See Also

       Module::Path

Usage

         mpath [OPTIONS] MODULE [MODULE ...]

See Also