PMVERS(1p)

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

πŸ’– PMVERS πŸ’–

okay bestie, so this is pmvers β€” a lil tool from the User Contributed Perl Documentation crowd that prints out a module's version πŸ’…


✨ NAME ✨

pmvers β€” print out a module's version 🌸


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: you hand it one or more module names, and it shows you the version number if present. If you give it more than one argument, it'll also print the name of the module alongside the number β€” like, it knows you can't keep track of which line is which otherwise 🫢

⚠️ but bestie, plot twist: not all modules define version numbers. Some of them simply woke up and chose chaos. If a module has no version, pmvers can't magic one out of thin air. 😭

πŸ”₯ EXAMPLES πŸ”₯

okay let's actually see it, no cap:

$ pmvers CGI
2.46

one module, one number, clean, iconic πŸ‘‘

$ pmvers IO::Socket Text::Parsewords
IO::Socket: 1.25
Text::ParseWords: 3.1

two modules β†’ now you get the names too, so you know who's who. main character labeling energy ✨

$ oldperl -S pmvers CGI
2.42
$ filsperl -S pmvers CGI
2.46

running it through different perls, different answers. it's giving context matters πŸ’€

$ pmvers Devel::Loaded
pmvers: unknown version for module `Devel::Loaded'

and there it is β€” the no-version case. the module said "version? never heard of her" πŸ™ˆ


🌈 SEE ALSO 🌈

the whole squad, fr fr πŸŽ€


πŸ‘‘ AUTHORS and COPYRIGHTS πŸ‘‘

Copyright (C) 1999 Tom Christiansen.

Copyright (C) 2006-2014 Mark Leighton Fisher.


πŸ’œ LICENSE πŸ’œ

This is free software; you can redistribute it and/or modify it under the terms of either: (a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or (b) the Perl "Artistic License". (This is the Perl 5 licensing scheme.)

πŸ“Œ 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".

and that's the whole thing, bestie 🧚 that was perl v5.36.0, dated 2022-10-14 β€” slay, go check your module versions, ily, bye πŸ’–βœ¨

πŸ“¦ where this page comes from