This file is indexed.

/usr/bin/mpath is in libmodule-path-perl 0.09-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env perl
use strict;
use warnings;
use Module::Path qw(module_path);

die "Usage: $0 <module>\n" unless @ARGV == 1;
my $module = shift @ARGV;
my $path   = module_path($module);
if (!defined($path)) {
    die "$module not found\n";
}
print $path, "\n";
exit 0;

=head1 NAME

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

=head1 SYNOPSIS

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

=head1 DESCRIPTION

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

At the moment the script only lets you list one argument; anything else
and it will die with a usage message.

If the module wasn't found, C<mpath> will die with the following message:

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

=head1 SEE ALSO

L<Module::Path>

=head1 AUTHOR

Neil Bowers E<lt>neilb@cpan.orgE<gt>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Neil Bowers E<lt>neilb@cpan.orgE<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.