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
In reply to Re^2: Converting Java Sockets to Perl Sockets
by tye
in thread Converting Java Sockets to Perl Sockets
by Art_XIV
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |