Your reading in of the options file doesn't care how many options (or elements in each option) there are. I take it you want to replace your three-tier foreach loop? There are many modules for this sort of thing on CPAN, and also there is some example code on perlfaq4.
The last example shows how to compute permutations for any array. HTH.
In reply to Re: how to make a foreach loop dynamic?
by BioLion
in thread how to make a foreach loop dynamic?
by jaydot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |