Keep It Simple, Stupid | |
PerlMonks |
Re: how to make a foreach loop dynamic?by BioLion (Curate) |
on May 20, 2010 at 11:37 UTC ( [id://840903]=note: print w/replies, xml ) | Need Help?? |
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.
Just a something something...
In Section
Seekers of Perl Wisdom
|
|