in reply to Re: how to make a foreach loop dynamic?
in thread how to make a foreach loop dynamic?

thanks for the replies but im findin it hard to go on the sample code on perlfaq4.. i have trouble with understanding it. you see this is my first time creating a code like this.perl is my fist programming languange. and im having a hard time in doing all the coding..i have been starting the coding nearly two weeks already..and im a newbie to programming.. a little example will do just to guide me somehow..tnx in advance..

  • Comment on Re^2: how to make a foreach loop dynamic?

Replies are listed 'Best First'.
Re^3: how to make a foreach loop dynamic?
by BioLion (Curate) on May 21, 2010 at 15:42 UTC

    Mayeb have a look at the source code for List::Permutor ( Source ). It is pretty well commented and should help.

    I would just use this module or similar to do the heavy lifting directly rather than trying to roll my own (Yes, even you can use CPAN) .

    Sorry I can't be of more help, time is short for me, but i hope you get this sorted out! I think the key lies in the way List::Permutor handles a list of *any* length, as opposed to your static three-tier loop. Have a look at that and see how you get on.

    Again, sorry I can't be more help.

    Just a something something...