The stupid question is the question not asked | |
PerlMonks |
Re^3: How foreach loops decide what to iterate throughby jethro (Monsignor) |
on Feb 14, 2009 at 02:54 UTC ( [id://743756]=note: print w/replies, xml ) | Need Help?? |
You are looping over an array you are adding to, so you are never reaching the end. This is somewhat similar to the following loop
Note that
stops immediately, because here you are looping over the anonymous array that is not expanding.
In Section
Seekers of Perl Wisdom
|
|