I'm not quite sure if I understood your problem correctly, but Algorithm::Loops might solve it. At least it makes it easy to produce all possible combinations of dynamically computed lists.
In reply to Re: how to make a foreach loop dynamic?
by moritz
in thread how to make a foreach loop dynamic?
by jaydot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |