more useful options | |
PerlMonks |
Re^2: Checing presence of input on standard input in non-blocking way, sans user interactionby wet (Initiate) |
on May 25, 2015 at 07:00 UTC ( [id://1127653]=note: print w/replies, xml ) | Need Help?? |
in my haste - forgot to add, you need to do this before the call to getcmd(). this is from the standard Fcntl package and the sets the file handle to non blocking by adding to the flags, you can reset the flag afterwards.
In Section
Seekers of Perl Wisdom
|
|