dagwood00 has asked for the wisdom of the Perl Monks concerning the following question:
A
A B
A C
A D
A B C
A B C D
B
B C
B C D
C
C D
D
I may have missed some combinations, but I think this is the general pattern. I need to generate every pattern possible.
I've looked at Algorithm::Permute and Algorithm::Loops, but these provide permutations and this is not really permutations.
Any help, leads or examples would be definitely appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Combinations of array?
by toolic (Bishop) on Jun 09, 2012 at 01:16 UTC | |
by dagwood00 (Initiate) on Jun 09, 2012 at 01:47 UTC | |
|
Re: Combinations of array?
by ambrus (Abbot) on Jun 10, 2012 at 09:28 UTC | |
|
Re: Combinations of array?
by jaredor (Priest) on Jun 17, 2012 at 06:30 UTC |