Module::Depends(3pm)
π Module::Depends(3pm) π
okay so bestie, welcome to Module::Depends β it lives in the User Contributed Perl Documentation section of your friendly neighborhood perl manual, and it's here to spill the tea on what a distribution actually needs to run. π«Ά
β¨ NAME β¨
Module::Depends β identify the dependencies of a distribution π
πΈ SYNOPSIS πΈ
use Module::Depends;
my $deps = Module::Depends->new->dist_dir( '.' )->find_modules;
print "Our dependencies:\n", Dump $deps->requires;
literally three lines and you're done, no cap β¨
π¦ DESCRIPTION π¦
So here's the vibe: Module::Depends extracts module dependencies from an unpacked distribution tree. That's the whole job. That's it. π
But β and this is the important part, bestie β Module::Depends only evaluates the META.yml shipped with a distribution. It does not go digging. It does not read your source. It trusts the META.yml and that's it.
And that won't actually be effective until all distributions ship META.yml files, which likeβ¦ they don't all do, so. Because of that, the docs suggest you take your life in your hands π and go look at Module::Depends::Intrusive instead. dramatic? yes. accurate? also yes.
π METHODS π
π new
simple constructor. That's the whole description. It's giving minimalist. π
π dist_dir
Path where the distribution has been extracted to. π
π find_modules
Scan the dist_dir to populate libs, requires, configure_requires, test_requires, and build_requires. this is the main character of the module fr fr β¨
π libs
An array reference of lib lines. π
π requires
A reference to a hash enumerating the prerequisite modules for this distribution. π
π configure_requires
A reference to a hash enumerating the prerequisite modules to configure this distribution. π§
π build_requires
A reference to a hash enumerating the modules needed to build the distribution. ποΈ
π error
A reason, if any, for failing to get dependencies. aka the "why is this not working" field, and honestly? relatable. π
π AUTHOR π
Richard Clamp, based on code extracted from the Fotango build system originally by James Duncan and Arthur Bergman. π«Ά iconic lineage honestly.
πΈ COPYRIGHT πΈ
Copyright 2010, Richard Clamp. Copyright 2004-2008, Fotango.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source π
β SEE ALSO β
Module::Depends::Intrusiveβ the chaotic one. go say hi. π
heads up bestie: if a distribution doesn't ship a META.yml, this module is gonna have a bad time. the docs said it themselves. π
k bye, this page came to you from the perl v5.36.0 docs, dated 2022-11-19, under the Module::Depends(3pm) name π
β¨ go read your META.yml and hydrate π«Ά
π¦ where this page comes from
- debian bookworm: libmodule-depends-perl 0.16-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmodule-depends-perl 0.16-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmodule-depends-perl 0.16-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmodule-depends-perl 0.16-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmodule-depends-perl 0.16-5 Β· 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