in reply to foreach loop question
> Probably, the list for looping is populated before the loop starts? Yes.
You might want to try
But I am not sure if you'll get all your new keys.while (my ($key, $value) = each(%h)) { }
P.S. next; at the end of foreach block is redundant.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: foreach loop question
by robartes (Priest) on Apr 16, 2003 at 18:50 UTC | |
by dmitri (Priest) on Apr 16, 2003 at 18:52 UTC | |
by djantzen (Priest) on Apr 16, 2003 at 19:14 UTC | |
by chromatic (Archbishop) on Apr 16, 2003 at 19:54 UTC | |
|
Re: Re: foreach loop question
by dda (Friar) on Apr 16, 2003 at 18:53 UTC |