sync up with CPAN version

This uses send instead of print to the socket, to avoid a buffering issue that was reported to me.