Module...Depends(3pm)

πŸ“¦
version 0.02 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 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