Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: timeout for ?by ar0n (Priest) |
on Aug 29, 2000 at 13:06 UTC ( [id://30092]=note: print w/replies, xml ) | Need Help?? |
From "Advanced Perl Programming": update this will wait ten seconds for someone to enter something. the alarm(0) is to reset the timer if something does get entered (so &timed_out won't get called). if you want high resolution timing (like 2.35), ye olde dromedary suggests using syscall to call the system timer routines (itimer). -- ar0n || Just Another Perl Joe
In Section
Seekers of Perl Wisdom
|
|