# from Adam Kennedy
# on Wednesday 14 January 2009 17:00:
>Indefinite retry is not a good idea, but limited retry should cover
>almost every case that is laggy without preventing legitimate failures
>from happening.
Of course not and yes, Certainly.
do {unlink($file) and last; -e $file and die $!;
warn "cannot unlink $file\n"; sleep 1; } for(1..20);
Or something like that.
David, would you like to look into whether a function/method like this
would make sense as part of the M::B::Win32 API or possibly just a bit
of the testing support code.
Feel free to write a short test in xt/ which may occasionally prove that
it works.
Thanks,
Eric
--
I arise in the morning torn between a desire to improve the world and a
desire to enjoy the world. This makes it hard to plan the day.
--E.B. White
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------