XP is just a number | |
PerlMonks |
Re: while( each ... ) caught in an infinite loopby BrowserUk (Patriarch) |
on Mar 31, 2009 at 10:44 UTC ( [id://754382]=note: print w/replies, xml ) | Need Help?? |
You are calling the subroutine again each time the while loop iterates, which means you are constructing and returning a new anonymous hash for each iteration. As the hashref returned is to a newly construct hash, its iterator starts from the beginning each time. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|