Don't use <$sock>. Use read or sysread.
- tye
In reply to Re: Can't display last line with IO::Socket::INET (read) by tye in thread Can't display last line with IO::Socket::INET by swkronenfeld