Yeah, that's a common problem with sockets. You usually use IO::Select to read sockets reliably, but if you want to go simple, try either of these:
my $msg; $sock->recv($msg, 1024); # or sysread ( $sock, my $line, 1024);
In reply to Re: Getting stuck reading from a socket
by zentara
in thread Getting stuck reading from a socket
by punungwe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |