Have you tried setting the input record separator (see perlvar)?
$sock->input_record_separator( 'ETX' ); [download]
In reply to Re: Socket IO NO new line by kyle in thread Socket IO NO new line by indigo1tx