You need to turn on autoflushing in the client, too ($| = 1, just like you have it in the server).
In reply to Re: Socket Communication-duh by almut in thread Socket Communication-duh by dant