Hi perl monks,
I'm a complete novice in need of help please.
I have a set of elements i.e. {A B C} and need to produce all combinations of this set with a length of 2, i.e.
AA AB AC
BA BB BC
CA CB CC
This is not quite permutations or combinations because a single element can occur more than once in a string i.e. AA.
Any help would be appreciated.
Thanks