perlquestion
aartist
I am looking for combinations from multiple sets. For exmaple, I need 3 letters from 'a'..'z' and 2 digits from '0'..'9'. I can get single combination with [cpan://Math::Combinatorics] easily. Is there one for multiple set? ( Above sets are just examples, so a quick solution, for above case may not be useful).<p>
<b>Update:</b>
My sets can overlap too. For exmaple I may have 4 sets like '0..7','1-6', '6-12',and '3..9'. I also need to eliminate duplicate items. In the case of overlapping sets, every resulting row should satisfy the initial condition. ie.. if I ask for 2 from '0..7' and 3 from '6..12', I should NOT have "6,7,6,7,8" or even "4,5,6,7,8" ( Here 0..7 has 4 entries rather than 2, as asked for.)