Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Which Permute or other module can give me all possible subsets of 6 numbers out of 40?by Corion (Patriarch) |
on Apr 11, 2018 at 07:10 UTC ( [id://1212659]=note: print w/replies, xml ) | Need Help?? |
If I understand you correctly, this is the basic example of NestedLoops from Algorithm::Loops:
If you want to create all those pairings in memory, NestedLoops can also give you the list instead of invoking a callback.
In Section
Seekers of Perl Wisdom
|
|