Hello, fellow Monks!
I am not a mathematician, so I am sure there's a word for this out there. I want to generate every possible combination of words taken from an array. The array will have words, I want it to be like this:
@array = qw( hey foo bar );
Output:
And so on...
I would love the ability to control the number of repetitions allowed in the output, and haven't been able to find any module to do so. Data::Random does a nice job of randomly selecting random numbers of elements, but I want a linear way of generating them - It is for a test suite for a program I'm writing right now.
Any help would be greatly appreciated!