in reply to how to make a foreach loop dynamic?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to make a foreach loop dynamic?
by jaydot (Novice) on May 21, 2010 at 07:41 UTC | |
by BioLion (Curate) on May 21, 2010 at 15:42 UTC |