MPATH(1) User Contributed Perl Documentation MPATH(1)

# [NAME](#NAME)

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

# [USAGE](#USAGE)

```
  mpath [OPTIONS] MODULE [MODULE ...]
```

# [EXAMPLE](#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
```

# [DESCRIPTION](#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
```

# [OPTIONS](#OPTIONS)

[**-h**, **-?**, **--help**](#h)

Print this help message and exit.

[**-f**, **--full**](#f)

Print module name.

[**-q**, **--quiet**](#q)

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

# [SEE ALSO](#SEE_ALSO)

Module::Path

# [AUTHOR](#AUTHOR)

Neil Bowers &lt;neilb@cpan.org&gt;

# [COPYRIGHT AND LICENSE](#COPYRIGHT_AND_LICENSE)

This software is copyright (c) 2012 by Neil Bowers &lt;neilb@cpan.org&gt;.

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

2026-10-26 perl v5.44.0

---

Document: mpath(1) from perl-module-path 0.19-r4 (Chainguard OS)
Source: https://github.com/neilb/Module-Path
