Syntactic Confectionery Delight | |
PerlMonks |
Re^12: Threads sharing global variable (disingenous)by Anonymous Monk |
on Mar 10, 2016 at 13:58 UTC ( [id://1157295]=note: print w/replies, xml ) | Need Help?? |
It does and shown here. Seeing two zeros in the output happens either way with the lock obtained inside or outside the while loop. The OP doesn't mention if such occurrence is valid. Therefore, likely not a problem.
In Section
Seekers of Perl Wisdom
|
|