PMPATH(1p)

πŸ“¦
version 2.2.0 Β· 4 versions
, in ubuntu noble, ubuntu questing

πŸ’– PMPATH β€” it's giving "where does this module even live" ✨

okay bestie, listen. this is pmpath, a lil user-contributed Perl helper (yes it's the 1p manual, the p is for perl, we love her) and she does exactly ONE thing but she does it flawlessly. no notes. πŸ’…


🌸 NAME 🌸

pmpath β€” show the full path to a perl module. that's it. that's the whole job. and she ATE. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

pmpath module ...

✨ DESCRIPTION ✨

so here's the vibe: you hand pmpath a bunch of module names as arguments, and for each one she prints the module's full path to standard output. one path per line, no chaos, no clutter. clean. immaculate. πŸ¦‹


πŸ’… EXAMPLES πŸ’…

lowkey the best part, fr fr:

$ pmpath CGI
/usr/local/devperl/lib/5.00554/CGI.pm

okay so there she is, just living her life in that lib directory. ✨

$ filsperl -S pmpath IO::Socket CGI::Carp
/usr/local/filsperl/lib/5.00554/i686-linux-thread/IO/Socket.pm
/usr/local/filsperl/lib/5.00554/CGI/Carp.pm

not the -S flag finding the script for you 😭 iconic behaviour honestly. and yes, nested module names get nested directories, as they should.

$ oldperl -S pmpath CGI CGI::Imagemap
/usr/lib/perl5/CGI.pm
/usr/lib/perl5/site_perl/CGI/Imagemap.pm

two modules, two paths, one slay. notice how CGI::Imagemap lands in site_perl while CGI is chilling in perl5 β€” the search path knows things we don't. 🫢


🌈 SEE ALSO 🌈

sister modules, all in the same friend group:


πŸ‘‘ AUTHORS and COPYRIGHTS πŸ‘‘

Copyright (C) 1999 Tom Christiansen.

Copyright (C) 2006-2014 Mark Leighton Fisher.

give them their flowers, they earned them. πŸ’


πŸ“œ LICENSE πŸ“œ

This is free software; you can redistribute it and/or modify it under the terms of either:

  1. the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
  2. the Perl "Artistic License".

(This is the Perl 5 licensing scheme.)

⚠️ heads up bestie, this is a change from the original pmtools-1.00 (still available on CPAN), because pmtools-1.00 was licensed only under the Perl "Artistic License". so like, glow-up era. 🧚

and that's the whole page! this was brought to you by perl v5.36.0, dated 2022-10-14, filed under PMPATH(1p) in the user contributed perl documentation section. k byeeee πŸ’–πŸŽ€βœ¨πŸŒˆπŸ¦‹

πŸ“¦ where this page comes from