in reply to Checing presence of input on standard input in non-blocking way, sans user interaction
I think in C it was usually the keyPress() function.
In other words, you want to be able to see if there's a reason to process input without stopping your program to wait for it. AND you want it to work even if the user had redirected input.
There is no pure Perl solution to this that I'm aware of -- over the years, I have checked from time to time.
Not sure why you wish to avoid using Term::Readkey but without that I would expect you to not find a solution.
If you do find one, I'd personally appreciate knowing about it here on Perlmonks.
Good luck in the hunt!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checing presence of input on standard input in non-blocking way, sans user interaction
by Anonymous Monk on Jul 18, 2013 at 07:35 UTC | |
by marinersk (Priest) on Jul 18, 2013 at 22:26 UTC |