in reply to Select Tcp Client
BTW, your client is hanging at the <STDIN> because your $socket is always "write ready".