in reply to selecting from a number of different input sources.
Problem is that if you try to read from a file which has no new data in it, then the io->getline() function will get blocked
That's not true. It will return end-of-file. Or are you reading from something other than a plain file?
See File::Tail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: selecting from a number of different input sources.
by jasoncollins (Novice) on Jul 21, 2010 at 16:55 UTC | |
by ikegami (Patriarch) on Jul 21, 2010 at 17:25 UTC | |
by runrig (Abbot) on Jul 21, 2010 at 17:34 UTC |