mpath - display the full path to a perl module (installed locally)
% mpath Module::Path /usr/local/lib/perl5/site_perl/5.16.0/Module/Path.pm
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.
module_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, mpath will die with the following message:
mpath
% mpath Foo::Bar Foo::Bar not found
Module::Path
Neil Bowers <neilb@cpan.org>
This software is copyright (c) 2012 by Neil Bowers <neilb@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Module::Path, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Path
CPAN shell
perl -MCPAN -e shell install Module::Path
For more information on module installation, please visit the detailed CPAN module installation guide.