Perhaps you could use select?
alarm 10; while ( ! $done ) { $done = is_it_done_yet(); select undef, undef, undef, 1.0; }
I hope this is helpful.
Cheers,
JohnGG
In reply to Re: Alternatives to Mixing Alarm and Sleep
by johngg
in thread Alternatives to Mixing Alarm and Sleep
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |