1MPATH(1) User Contributed Perl Documentation MPATH(1)
2
3
4
6 mpath - display the full path to a perl module (installed locally)
7
9 mpath [OPTIONS] MODULE [MODULE ...]
10
12 % mpath Module::Path
13 /usr/local/lib/perl5/site_perl/5.16.0/Module/Path.pm
14
15 % mpath --full Module::Path
16 Module::Path /usr/local/lib/perl5/site_perl/5.16.0/Module/Path.pm
17
18 % mpath Moose Moo
19 /usr/local/lib/perl5/site_perl/5.16.0/darwin-2level/Moose.pm
20 /usr/local/lib/perl5/site_perl/5.16.0/Moo.pm
21
23 mpath displays the full path to a perl module on the local system. It
24 uses the "module_path()" function from Module::Path to get the path.
25
26 If one of the module wasn't found, mpath will exit with the exit code 1
27 and print the following message (you can silence it with the option
28 --quiet):
29
30 % mpath Foo::Bar
31 Foo::Bar not found
32
33 or:
34
35 % mpath Moose Foo::Bar
36 /usr/local/lib/perl5/site_perl/5.16.0/darwin-2level/Moose.pm
37 Foo::Bar not found
38
40 -h, -?, --help
41 Print this help message and exit.
42
43 -f, --full
44 Print module name.
45
46 -q, --quiet
47 Don't print any error when one of the module requested could not be
48 found.
49
51 Module::Path
52
54 Neil Bowers <neilb@cpan.org>
55
57 This software is copyright (c) 2012 by Neil Bowers <neilb@cpan.org>.
58
59 This is free software; you can redistribute it and/or modify it under
60 the same terms as the Perl 5 programming language system itself.
61
62
63
64perl v5.36.0 2022-07-22 MPATH(1)