PMINST(1)

πŸ“¦
version 2.2.0 Β· 3 versions
, in epel 9

πŸ’… PMINST(1) β€” the pminst glow-up πŸŽ€

okay bestie, so this is a page from the User Contributed Perl Documentation section, and honestly? it's giving "small tool, big main character energy." ✨


🌸 NAME 🌸

pminst β€” literally just find modules whose names match this pattern. that's it. that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

pminst [-s] [-l] [pattern]

three little flags-ish things and a pattern, no cap. 🫢


πŸ’– DESCRIPTION πŸ’–

so real talk: run it with no arguments and it shows you the names of, like, all the installed modules. every single one. icon behavior. πŸ‘‘

give it a pattern and it shows you every module name that matches it. matching go brrr. πŸ”₯

then we got the flags:

  • -l β€” shows the full pathname instead of just the module name. lowkey the most useful one ngl.
  • -s β€” separates the base directory from @INC from the module portion itself. it's giving "where did you even come from" energy. πŸ’€

🌈 EXAMPLES 🌈

okay this is the fun part, gather round 🧚

just vibes, no filter:

$ pminst
(lists all installed modules)

now we're hunting for Carp:

$ pminst Carp
CGI::Carp
Carp

regex time bestie, anchor that thing to the start of IO:::

$ pminst ^IO::
IO::Socket::INET
IO::Socket::UNIX
IO::Select
IO::Socket
IO::Poll
IO::Handle
IO::Pipe
IO::Seekable
IO::Dir
IO::File

and now the iconic case-insensitive (?i)io moment β€” not me getting Pod::Functions in there too 😭:

$ pminst '(?i)io'
IO::Socket::INET
IO::Socket::UNIX
IO::Select
IO::Socket
IO::Poll
IO::Handle
IO::Pipe
IO::Seekable
IO::Dir
IO::File
IO
Pod::Functions

πŸŽ€ the -s flag: directory separated by a space πŸŽ€

it literally says it right there β€” the -s flag provides output with the directory separated by a space. obsessed. πŸ’œ

$ pminst -s | sort +1
(lists all modules, sorted by name, but with where they
 came from)

and here's the oldperl era serving vintage realness:

$ oldperl -S pminst -s IO
/usr/lib/perl5/i386-linux/5.00404 IO::File
/usr/lib/perl5/i386-linux/5.00404 IO::Handle
/usr/lib/perl5/i386-linux/5.00404 IO::Pipe
/usr/lib/perl5/i386-linux/5.00404 IO::Seekable
/usr/lib/perl5/i386-linux/5.00404 IO::Select
/usr/lib/perl5/i386-linux/5.00404 IO::Socket
/usr/lib/perl5/i386-linux/5.00404 IO
/usr/lib/perl5/site_perl LWP::IO
/usr/lib/perl5/site_perl LWP::TkIO
/usr/lib/perl5/site_perl Tk::HTML::IO
/usr/lib/perl5/site_perl Tk::IO
/usr/lib/perl5/site_perl IO::Stringy
/usr/lib/perl5/site_perl IO::Wrap
/usr/lib/perl5/site_perl IO::ScalarArray
/usr/lib/perl5/site_perl IO::Scalar
/usr/lib/perl5/site_perl IO::Lines
/usr/lib/perl5/site_perl IO::WrapTie
/usr/lib/perl5/site_perl IO::AtomicFile

πŸ¦‹ the -l flag: full paths, periodt πŸ¦‹

the -l flag gives full paths β€” look at these absolute units:

$ filsperl -S pminst -l Thread
/usr/local/filsperl/lib/5.00554/i686-linux-thread/Thread/Queue.pm
/usr/local/filsperl/lib/5.00554/i686-linux-thread/Thread/Semaphore.pm
/usr/local/filsperl/lib/5.00554/i686-linux-thread/Thread/Signal.pm
/usr/local/filsperl/lib/5.00554/i686-linux-thread/Thread/Specific.pm
/usr/local/filsperl/lib/5.00554/i686-linux-thread/Thread.pm

πŸ‘‘ AUTHORS and COPYRIGHTS πŸ‘‘

  • Copyright (C) 1999 Tom Christiansen.
  • Copyright (C) 2006-2014, 2018 Mark Leighton Fisher.

both legends, we stan. 🫢


πŸ“œ LICENSE πŸ“œ

okay so this is free software β€” you can redistribute it and/or modify it under the terms of either:

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

(this is the Perl 5 licensing scheme.) πŸŽ€

⚠️ bestie please note: this is a change from the original pmtools-1.00 (still available on CPAN), as pmtools-1.00 were licensed only under the Perl "Artistic License". so don't come for me, that's just what the page says πŸ’€

and that's the whole page, bestie β€” no more, no less πŸ’…βœ¨

signing off from perl v5.32.1, dated 2022-01-21 β€” this has been your girl, PMINST(1), out. πŸ¦‹πŸ’–πŸŽ€

πŸ“¦ where this page comes from