in reply to Waiting for input, without sleep

I bet I know what's up here. I had the exact same symptoms not long ago.

Does your message end with a "\n"? If not, your reader doesn't know the message has ended. (You don't have to use \n, set $\ on both server and client. see perlvar).

Hope that helps.

--Pileofrogs