What do you mean by "didn't really work"?
If you open the socket before each line, and close it after the line, each connection will only transport one line. Is that the desired behaviour?
Edit: what you probably need is autoflushing the $sock. IO::Socket says As of VERSION 1.18 all IO::Socket objects have autoflush turned on by default. This was not the case with earlier releases. So which version of IO::Socket are you using?
(And please but <code>...</code> tags around your example code.)
In reply to Re: Perl Sockets question
by moritz
in thread Perl Sockets question
by jimbo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |