Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2014-07-22 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (119 votes), past polls