Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Time-limited input on STDIN

by Ackolight (Initiate)
on Apr 07, 2009 at 23:21 UTC ( #756183=note: print w/ replies, xml ) Need Help??


in reply to Re: Time-limited input on STDIN
in thread Time-limited input on STDIN

Hi Adrian,

Just wanted to say thanks. Although it was not my query originally, I found your method worked in the situation I needed, whereas the other methods utilising SIG don't seem to work under ActivePerl on Windows.

Just one tweak: a line before the return to prevent it complaining about uninitialised values:

$string= defined $string ? $string : "No input" ;

Thanks again. :)


Comment on Re^2: Time-limited input on STDIN
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-07-07 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls