in reply to Re: Converting Java Sockets to Perl Sockets
in thread Converting Java Sockets to Perl Sockets
While your advice won't hurt, I doubt it will solve the problem. Sockets are unbuffered by default so neither of your suggestions should matter.
However, trying to use <$socket> is very often a problem. It will not return, no matter how long you wait, unless $/ ("\n") or end-of-file arrives on the socket.
Switching to using read or sysread or even recv will likely fix the problem.
- tye
|
|---|