really should be:$socket->send ("example"\n");
ditto for the recv call.my $retval = $socket->send("example\n"); # make sure $retval is defined, and contains the length of the strin +g
As for closing the socket, I understand that *you* are not closing it, but there are 2 sides to every connection :).
In reply to Re^5: Socket recv?
by Illuminatus
in thread Socket recv?
by packetstormer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |