Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Time-limited input on STDINby Ackolight (Initiate) |
on Apr 07, 2009 at 23:21 UTC ( [id://756183]=note: print w/replies, xml ) | Need Help?? |
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. :)
In Section
Seekers of Perl Wisdom
|
|