in reply to Perl Sockets question
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Sockets question
by jimbo (Initiate) on Feb 08, 2008 at 23:16 UTC | |
by redgreen (Priest) on Feb 09, 2008 at 03:41 UTC | |
by jimbo (Initiate) on Feb 09, 2008 at 04:28 UTC | |
by moritz (Cardinal) on Feb 09, 2008 at 08:58 UTC | |
by jimbo (Initiate) on Feb 09, 2008 at 09:33 UTC |