in reply to Re^2: socket help
in thread socket help

That's not the code I posted at all, and you're hiding potential error messages by not using use strict; use warnings;.