You should look at Algorithm::Loops, and, through Super Search, to the following PM links:
In reply to Re: recursively generating permutations
by rnahi
in thread recursively generating permutations
by spurperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |