Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Checing presence of input on standard input in non-blocking way, sans user interaction

by Anonymous Monk
on Jul 17, 2013 at 14:18 UTC ( #1044819=note: print w/ replies, xml ) Need Help??


in reply to Checing presence of input on standard input in non-blocking way, sans user interaction

use the shift function to get standard input provided like that.


Comment on Re: Checing presence of input on standard input in non-blocking way, sans user interaction
Re^2: Checing presence of input on standard input in non-blocking way, sans user interaction
by Anonymous Monk on Jul 17, 2013 at 14:41 UTC

    It's not standard input by the way, you have rerouted standard output in the other program.

Re^2: Checing presence of input on standard input in non-blocking way, sans user interaction
by marinersk (Chaplain) on Jul 17, 2013 at 15:37 UTC
    I am unaware of how shift can be used to indicate whether the user has typed something on the keyboard.

    I am also unaware of how shift can be used to determine if there is any data waiting to be read on STDIN from redirected input.

    Could you be so kind as to provide a working code example? That would be really cool information to have!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1044819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2014-09-23 01:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls