in reply to Can't display last line with IO::Socket::INET
Don't use <$sock>. Use read or sysread.
- tye