Module...Depends(3pm)
π NAME π
okay bestie, say hi to Module::Math::Depends β it's a whole convenience object for messing with module dependencies β¨
(it lives in the perl man pages as 3pm, which is giving very "user contributed perl documentation" energy, and honestly? iconic.)
πΈ DESCRIPTION πΈ
so basically this is a lil convenience module π it started life as part of Module::Inspector but then it got released on its own, separately, because the hope was that people might find it useful in other contexts too π¦
that's it. that's the lore. π
β¨ METHODS β¨
π new
my $deps = Module::Math::Depends->new;
makes a brand new, empty dependency set π«Ά it's a blank slate, a fresh start, main character energy fr fr.
π from_hash
my $deps = Module::Math::Depends->from_hash( \%modules );
makes a new dependency set out of a raw hashref of module names and versions β so you hand it a hashref and it does the whole glow-up into a proper dep set.
π add_module
$deps->add_module( 'My::Module' => '1.23' );
adds exactly one module dependency to the set. one. single. module. no cap. π
it returns true, or it dies on error π (dramatic but fair).
π merge
$my_deps->merge( $your_deps );
the merge method takes another dependency set and merges it into the current one π and here's the tea: where both sets contain the same module, it keeps the highest version. no downgrades in this house, periodt.
returns true or dies on error π
π§ as_string
print $depends->as_string;
converts the dependency set into a simple printable string β¨ yes queen, stringify it.
π«Ά SUPPORT π«Ά
this module is stored in an Open Repository at the following address:
<http://svn.ali.as/cpan/trunk/Module-Math-Depends>
write access to the repository is made available automatically to any published CPAN author, and to most other volunteers on request πΈ
if you're able to submit your bug report in the form of new (failing) unit tests, or can apply your fix directly instead of submitting a patch, you are strongly encouraged to do so π because the author currently maintains over 100 modules and it can take some time to deal with non-Critcal bug reports or patches π
this will guarentee that your issue will be addressed in the next release of the module β¨
if you cannot provide a direct test or fix, or don't have time to do so, then regular bug reports are still accepted and appreciated via the CPAN bug tracker π
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Module-Math-Depends>
for other issues, for commercial enhancement or support, or to have your write access enabled for the repository, contact the author at the email address above π
π AUTHORS π
Adam Kennedy <adamk@cpan.org>
π COPYRIGHT π
Copyright 2006 - 2008 Adam Kennedy.
this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself π¦
the full text of the license can be found in the LICENSE file included with this module.
okay that's the whole page bestie, no notes π this was perl v5.34.0, dated 2022-06-15, and it was filed under Module...Depends(3pm) β mwah, slay, bye πβ¨
π¦ where this page comes from
- debian bookworm: libmodule-math-depends-perl 0.02-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmodule-math-depends-perl 0.02-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmodule-math-depends-perl 0.02-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmodule-math-depends-perl 0.02-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmodule-math-depends-perl 0.02-4 Β· 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