"be consistent" | |
PerlMonks |
Re: Using stdin only if there is input on it, but skipping it if there is no databy perlfan (Vicar) |
on Nov 18, 2020 at 19:41 UTC ( [id://11123789]=note: print w/replies, xml ) | Need Help?? |
In the past I have used a combination of a timeout and a black that the user sets to explicitly say, "look for STDIN", sort of like some *nix utilities use the lone "dash" (-) (e.g., tar, etc). Also I found this solution (stackexchange) that is not my solution but demonstrates using a time out with the read.
In Section
Seekers of Perl Wisdom
|
|