MODULES-USED(1)
π MODULES-USED π (that's the modules-used man page from the User Contributed Perl Documentation section, bestie)
okay so listen. imagine you wanna know which modules some Perl code is pulling in, but you do NOT wanna actually run that code. sketchy? maybe. relatable? absolutely. that's literally what this lil icon does.
β¨ NAME β¨
modules-used β list all the modules that a set of Perl source files uses, and do it without ever running them. no cap. π
πΈ VERSION πΈ
this doc is describing modules-used version 1.3.0. periodt.
π USAGE π
modules-used source-file [...]
π¦ DESCRIPTION π¦
so basically it dumps out a list of every module your Perl code uses. how does it know? it finds them statically, by looking at your use and require statements. no execution, no running, just vibes and reading. π
and here's the cute part: if it spots a base or parent being used, it will emit both that module and the ones it references. the way that it just knows?? obsessed.
β οΈ but bestie, listen β dynamically loaded modules will not be found. at all. if your code does some runtime require shenanigans, this tool is gonna be like "i don't see it π€·" so don't come for it.
π REQUIRED ARGUMENTS π
source-file [...]β a whole list of files you want it to search through. give it the files, it does the thing. π«Ά
π OPTIONS π
None. nope, zero, nada, not a single flag. it's giving minimalism. it's giving "i don't need options to slay". π§
π DIAGNOSTICS π
here's where it tells you what went wrong, and honestly? same.
Could not find module "%s" in @INC.β it can't find where the named module lives. and just to be super clear: this program will not find any dynamically loaded modules. not a one. π"%s" does not exist.β the file? not there. doesn't exist. gone. vanished."%s" is not readable.β it's there but you can't read it. rude of it, honestly."%s" is a directory.β plot twist: the "file" was actually a directory the whole time. main character twist energy. πCould not parse "%s".β PPI looked at the file and was like "bestie this is not a Perl document". it could not interpret it. π
π CONFIGURATION AND ENVIRONMENT π
None. no config, no env vars, nothing to set up. it just works. β¨
β DEPENDENCIES β
Module::Used
that's the one. that's the whole list. iykyk.
πΈ INCOMPATIBILITIES πΈ
None known. she plays nice with everybody. π
π BUGS AND LIMITATIONS π
None reported. (iconic behaviour, honestly)
but fr fr, if you do find bugs or have feature requests, please report them to bug-module-used@rt.cpan.org, or through the web interface at <http://rt.cpan.org>. don't just suffer in silence, bestie. π«Ά
π₯ SEE ALSO π₯
Devel::LoadedModule::Extract::NamespacesModule::ScanDepsModule::PrintUsed
go check 'em out, they're all part of the same little friend group. π
π AUTHOR π
Elliot Shank <perl@galumph.com>
π LICENSE AND COPYRIGHT π
Copyright Β©2008-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. so like, go forth and remix, just keep it legal. π
β οΈ DISCLAIMER OF WARRANTY β οΈ
okay bestie this part is all caps for a REASON so pay attention:
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.
like, no refunds on free software, that's the deal. π«Ά
and that's the whole page, bestie!! π this one came to you from perl v5.42.0, dated 2025-07-25, and it's the MODULES-USED(1) page from the User Contributed Perl Documentation section. stay slaying, stay statically analyzing, and may your @INC always be findable. mwah π
β¨
π¦ where this page comes from
- fedora 43: perl-Module-Used 1.3.0-31.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms