This is very ugly code - take it more like the pseudo-code you asked for. I'm not a Perl adept, and I normally hesitate to put code where some of the giants of Perl here may see it, but what the heck.foreach $l1 (@one) { foreach $l2 (@two) { foreach $l3 (@three) { $permutation = $l1 . $l2 . $l3; # Do whatever } } }
Does this help?
=Blue
...you might be eaten by a grue...
In reply to Re: Sort of a permutation
by Blue
in thread Sort of a permutation
by KM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |