Not what you're asking, but have you considered using Algorithm::Combinatorics? This does (permut|combin|vari)ations, and more.
In reply to Re: make error installing Algorithm::Permute
by Anonymous Monk
in thread make error installing Algorithm::Permute
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |