You are Suffering From Buffering.
In reply to Re: how send message without new-line terminator on IO::Socket by Corion in thread how send message without new-line terminator on IO::Socket by earlati2