MODULES-USED(1p)
π 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 anX, 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>
π LICENSE AND COPYRIGHT π
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
- debian bookworm: libmodule-used-perl 1.3.0-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmodule-used-perl 1.3.0-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmodule-used-perl 1.3.0-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmodule-used-perl 1.3.0-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmodule-used-perl 1.3.0-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