in reply to
Multiple Permutation handling
I had that same question quite a while ago, some similar and different answers there:
Conglomerate of arrays with no duplicates
Comment on
Re: Multiple Permutation handling
In Section
Seekers of Perl Wisdom