Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Time-limited input on STDIN

by Ackolight (Initiate)
on Apr 07, 2009 at 23:21 UTC ( [id://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. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-26 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found