in reply to TCP Server Exits Loop and Crashes with error
From IO::Socket:
accept([PKG]) [...] In a scalar context the new socket is returned, or undef upon failure.
Alexander