Syntactic Confectionery Delight | |
PerlMonks |
Re: One piece of code, two mysteries!by andal (Hermit) |
on Oct 05, 2012 at 07:22 UTC ( [id://997404]=note: print w/replies, xml ) | Need Help?? |
These 2 lines confuse me What are you trying to do here? It appears, that you repeat sleep(1) until $timeout is 0. In this case, the second line does nothing, so your thread is not terminated. Probably you wanted to have
Could it be, that running thread messes up the array?
In Section
Seekers of Perl Wisdom
|
|