NAME

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

VERSION

This document describes version 0.13.2 of mpath (from Perl distribution Alt-Module-Path-SHARYANTO), released on 2014-06-22.

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
mpath: Foo::Bar not found

or:

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

USAGE

mpath [OPTIONS] MODULE [MODULE ...]

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

OPTIONS

-h, -?, --help

Print this help message and exit.

-f, --full

Print module name before the path. For convenience this is turned on by default if there are more than one argument (but you can still turn it off using --nofull).

-q, --quiet

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

--abs

Absolutize paths.

--all

Find all found paths in @INC instead of the first one.

--[no]find-prefix, -p

Find module prefixes (e.g. When there is a module Foo::Bar, searching Foo will return the directory). Default is off.

--[no]find-pm

Find .pm files. Default is on.

--[no]find-pmc

Find .pmc files. Default is on.

--[no]find-pod

Find .pod files.

--pod

Equivalent to --find-pod --nofind-pm --nofind-pmc.

SEE ALSO

Alt::Module::Path::SHARYANTO

Module::Path

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Alt-Module-Path-SHARYANTO.

SOURCE

Source repository is at https://github.com/sharyanto/perl-Alt-Module-Path-SHARYANTO.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Alt-Module-Path-SHARYANTO

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.