This should read data from the socket until it sees "abcd" and then it will stop.{ local $/ = "abcd"; $data = <SOCKET>; }
In reply to Re: reading from sockets
by Dominus
in thread reading from sockets
by $CBAS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |