Data::...atorics(3pm)
π¦ Data::Password::zxcvbn::Combinatorics β it's giving math, bestie π
okay so this is Data::Password::zxcvbn::Combinatorics, a Perl module from the Data::Password::zxcvbn family, and it lives in the 3pm manpages. she's tiny, she's cute, she does combinatorics. that's the whole vibe.
β¨ VERSION β¨
version 1.1.3 π
πΈ DESCRIPTION πΈ
so basically this module hands you a couple of combinatorial functions β the little math besties that the rest of the library keeps calling up. that's it. that's the description. short and iconic, lowkey.
π FUNCTIONS π
π nCk
my $combinations = nCk($available,$taken);
returns the binomial coefficient, which, no cap, looks like this:
/ $available \
| |
\ $taken /
it's the classic "choose $taken things out of $available things" situation. math ate, fr fr. π₯
π§ enumerate_substitution_maps
my $enumeration = enumerate_substitution_maps(\%substitutions);
you hand her a hashref of arrayrefs, and she reads it as a map of substitutions. what you get back is an arrayref of hashrefs β all the reverse-substitutions, i.e. every possible way the swap could have gone down. π
for example, give her this:
{'a' => ['@', '4']}
(the translation, for the group chat: "'a' can be replaced with either '@' or '4'") π¬
and she returns:
[{'@' => 'a'}, {'4' => 'a'}] ],
which means: "in one case, '@' could have been substituted for 'a'; in the other, '4' could have been substituted for 'a'". two timelines, both valid, main character energy in each. β¨
π factorial
my $fact = factorial($number);
returns the factorial of the given number. she's literally just multiplying every number down to 1 and she's slaying while she does it. π
π AUTHOR π
Gianni Ceccarelli <gianni.ceccarelli@broadbean.com> β shoutout to the legend who wrote this. π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2022 by BroadBean UK, a CareerBuilder Company.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
bestie, that's the whole page. every flag, every function, every word β nothing dropped, nothing guessed. π
and that's a wrap!! this was Data::...atorics(3pm) from perl v5.40.1, dated 2025-10-17 β no thoughts, just combinatorics. bye bestie, go choose some subsets ππ¦
π¦ where this page comes from
- ubuntu resolute: libdata-password-zxcvbn-perl 1.1.3-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdata-password-zxcvbn-perl 1.1.3-1 Β· 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