MPATH(1p)
π MPATH π
omg hi bestie!! welcome to mpath (manual section 1p, from the User Contributed Perl Documentation crew) β okay so real talk, this little icon does ONE job and it does it flawlessly: it shows you the full path to a perl module that's installed locally on your system. no cap. that's the whole personality and honestly? iconic. π
πΈ NAME πΈ
mpath β display the full path to a perl module (installed locally)
like yes bestie, that IS the name and that IS what it does, we love a self-aware queen β¨
π¦ USAGE π¦
mpath [OPTIONS] MODULE [MODULE ...]
one MODULE, or a whole lil squad of them separated by spaces. she's flexible like that π«Ά
π EXAMPLE π
okay lemme show you how she eats:
% mpath Module::Path
/usr/local/lib/perl5/site_perl/5.16.0/Module/Path.pm
just the path. clean. minimal. main character energy. π
% mpath --full Module::Path
Module::Path /usr/local/lib/perl5/site_perl/5.16.0/Module/Path.pm
ooh with --full she gives you the name AND the path, like a lil name tag situation π·οΈβ¨
% 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
two modules in, two paths out. she's serving multitasking, periodt. π
π DESCRIPTION π
so like, mpath displays the full path to a perl module on the local system. it does this by using the module_path() function from Module::Path to get the path. that's the whole pipeline bestie, she's not out here reinventing anything, she's just sourcing from the good stuff. π§
now here's the part where you gotta pay attention: if one of the modules wasn't found, mpath will exit with the exit code 1 and print the following message. and yes, you can silence it with the option --quiet if you're the kind of girl who doesn't wanna hear bad news. π
% mpath Foo::Bar
Foo::Bar not found
or, if you're running a mixed batch where some hit and some don't:
% mpath Moose Foo::Bar
/usr/local/lib/perl5/site_perl/5.16.0/darwin-2level/Moose.pm
Foo::Bar not found
see how she still gave you the one that worked? she's not gonna punish the whole group for one flop. that's growth. that's maturity. that's a queen who knows how to separate the real ones from the missing ones. ππ
β¨ OPTIONS β¨
-h,-?,--helpβ print this help message and exit. (three whole ways to ask for help, she's accommodating π )-f,--fullβ print module name. (as in, you get the name and the path, not just the path)-q,--quietβ don't print any error when one of the module requested could not be found. (silence the sad news, live your truth β¨)
π SEE ALSO π
Module::Path
(the source of the module_path() magic, go give her a follow, iykyk π«Ά)
π AUTHOR π
Neil Bowers <neilb@cpan.org>
π COPYRIGHT AND LICENSE π
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.
okay bestie that's the whole page, you're fully certified in mpath now, go find your modules and slay πβ¨
signing off with love, from perl v5.36.0 dated 2022-10-13, filed under MPATH(1p) in the User Contributed Perl Documentation. mwah ππ¦
π¦ where this page comes from
- ubuntu noble: libmodule-path-perl 0.19-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmodule-path-perl 0.19-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmodule-path-perl 0.19-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms