Hi all, I wanted to know a way of taking a time limited STDIN. Say for eg after 3 seconds, the STDIN should stop waiting and move forward.
How do I do this??
I was trying with
unless ($child) {
sleep($waittime);
`echo "\n"`;
exit 0;
}
$ans = <STDIN>;
but this didn't work out. So please help me
thanks
Saurabh
