I have the same version of Perl, running on XP (Home Edition). Your script doesn't hang for me.
I don't see anything in your script that looks wrong. Could it be that your script is fine, and that this is an issue with Windows (difficult though that may be to believe)...?
In reply to Re: Perl threads test intermittently hangs on Windows
by baruch
in thread Perl threads test intermittently hangs on Windows
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |