in reply to Simultaneously reading from a file and serving data
Have you looked at IO::Select? It will allow you to have a loop which is "simultaneously" waiting for input from multiple sources and waiting for outputs to become ready for write and allowing for timeouts. Or you could use the underlying select call.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Simultaneously reading from a file and serving data
by sundialsvc4 (Abbot) on Feb 28, 2014 at 13:30 UTC |
In Section
Seekers of Perl Wisdom