Generate and process all the all the permutations of a list using the standard Perl metaphor.