in reply to While? and IO::Socket
It looks to me like your logic is a bit wrong. You're doing a sysread to read a chunk off the socket, then are immediately trying to do line reads off the same socket with the while loop. Since the timer() call is in the line reading loop, I'm guessing you're never getting in there because the socket is empty, having had all its data read with the previous sysread.
|
|---|