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. 🫢


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