in reply to Re^5: Thread weirdnessin thread Thread weirdness
I think at least part of the problem is that $Sock is not declared as shared
That's not the problem. $Sock will be cloned (dup'ed) into the Web thread.