in reply to Generating all possible combinations from an AoA
When you have an indeterminate level of nesting, it is good to think about recursive solutions (as in JavaFan's solution).
In Section
Seekers of Perl Wisdom
in reply to Generating all possible combinations from an AoA