Thanks, everyone. Looks like the approach is to determine how
long I'm willing to wait, then count down from there. I especially
like John's example of using "time".
deb
John W. Krahn <[EMAIL PROTECTED]> had this to say,
>
> Maybe something like this will work for you?
>
> my $start = time;
> my $waitfor = 10 * 60; # 10 minutes
>
> while ( -e "$somedir/.cache.LOCK" ) {
> sleep 1;
> last if time - $start > $waitfor;
> }
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
There are 010 types of people in the world:
those who understand binary, and those who don't.
��� 111,111,111 x 111,111,111 = 12,345,678,987,654,321 (decimal)
~
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]