|There's more than one way to do things|
It appears that on Windows 7 32 and 64 bit, you can run into scenarios where choice will never timeout even though it is supposed to.
Hm. Can't reproduce that.
It's also pretty implausible that a sleep within a console application would in any way be affected by whether the console it is running in has focus or not.
But if your Perl script works for you; that's all that matters :0
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.