PERL: Checking <STDIN> without actually waiting on it.
Posted on 2004-04-01
I want to check if there is something in the <STDIN> buffer, without actually having the system hang waiting for input.
i want to be able to run through the loop without it pausing every time to get input, and i want the 'do something' section to run only when there is something in the <STDIN> buffer, i.e. the user has typed something and pressed enter. (basically cntr keeps incrementing while waiting for input)