> 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.
In reply to Re: foreach loop question
by dmitri
in thread foreach loop question
by dda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |