http://www.perlmonks.org?node_id=45214

Q&A > network programming > Can I read a line from a socket without the socket sending \n? - Answer contributed by Anonymous Monk

use sysread