Short survey of [perl] modules for combinations and permutations
Short survey of modules for combinations and permutations
This is a short look at some modules for generating combinations and permutations. There are likely more modules that aren’t listed. RosettaCode has examples of writing the combinations and permutations functions by hand.
TL;DR: Just use Algorithm::Combinatorics (full-featured, xs).
Article dates back to 2015, but it’s still useful (IMHO).
See also Acme::CPANModules::Import::CombinationsAndPermutations by PERLANCAR