MODULES-USED(1p)

πŸ“¦
version 1.3.0 Β· 2 versions
  • 1.3.0 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.3.0 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– MODULES-USED(1p) πŸ’–

okay bestie, pull up a chair, because this is modules-used β€” a lil Perl script (manual section 1p, user-contributed perl docs, iykyk) that tells you which modules some Perl source files are using… without ever running them. ✨


✨ VERSION ✨

This doc describes modules-used version 1.3.0. πŸŽ€


πŸ¦‹ USAGE πŸ¦‹

modules-used source-file [...]

🌸 DESCRIPTION 🌸

It dumps a list of modules used by some Perl code. πŸ”

Modules get found statically based upon use and require statements. And listen β€” if use of the base or parent is found, then both that module and the referenced ones will be emitted. The way it just gives you the whole family, no cap. πŸ‘‘

Dynamically loaded modules will not be found. Not a vibe, but it's the truth. πŸ’€

πŸŽ€ REQUIRED ARGUMENTS πŸŽ€

  • X source-file [...] β€” a list of files to search. (yep, the label literally starts with an X, we keep it real here 🫢)

πŸ’… OPTIONS πŸ’…

None. Zero. Nada. It's giving minimalism, and honestly? Iconic. ✨


🩺 DIAGNOSTICS 🩺

  • Could not find module "%s" in @INC. β€” it cannot find the location of the named module. Note that this program will not find any dynamically loaded modules. πŸ™ˆ
  • "%s" does not exist. β€” cannot find the file. 😭
  • "%s" is not readable. β€” cannot read the file. πŸ’€
  • "%s" is a directory. β€” the "file" was actually a directory. bestie. it's a folder. 🫠
  • Could not parse "%s". β€” PPI could not interpret the file as a Perl document. 🧚

βš™οΈ CONFIGURATION AND ENVIRONMENT βš™οΈ

None. No env vars, no config files, nothing to tweak. It just works. πŸ’œ


πŸ“¦ DEPENDENCIES πŸ“¦

Module::Used


🚫 INCOMPATIBILITIES 🚫

None known. 🌈


πŸ› BUGS AND LIMITATIONS πŸ›

None reported. ⭐

Please report any bugs or feature requests to bug-module-used@rt.cpan.org, or through the web interface at <http://rt.cpan.org>.


πŸ‘€ SEE ALSO πŸ‘€

Devel::Loaded Module::Extract::Namespaces Module::ScanDeps Module::PrintUsed


✍️ AUTHOR ✍️

Elliot Shank <perl@galumph.com>


Copyright X2008-2012, Elliot Shank <perl@galumph.com>.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. πŸ¦‹


⚠️ DISCLAIMER OF WARRANTY ⚠️

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

and that's the whole page, bestie 🫢 this one shipped as perl v5.34.0, dated 2022-06-15, and lives in the manual as MODULES-USED(1p). go read your source files, they're not gonna scan themselves. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from