<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>Ah, sorry, I don't think I remembered seeing your demo at the time I wrote my Retry module.<div class="im"><br></div></blockquote><div class="gmail_quote"><br></div>AFAICR, we had a side discussion on source-filters and why they are sometimes the right solution...<div>

 <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<a href="http://search.cpan.org/~markf/Attempt-1.01/lib/Attempt.pm" target="_blank">http://search.cpan.org/~markf/<u></u>Attempt-1.01/lib/Attempt.pm</a><br>
<br>
But alas you did create a less useful module:<br>
<br>
<a href="http://search.cpan.org/~tjc/Retry-0.12/lib/Retry.pm" target="_blank">http://search.cpan.org/~tjc/<u></u>Retry-0.12/lib/Retry.pm</a><br>
</blockquote>
<br></div>
My module has exponential delays between retries and a different interface. Critically, it has a name that turns up in searches, unlike "Attempt" which sounds like yet another exception catching method.<div class="">

<div class="h5"><br></div></div></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra" style>But repeated nonetheless. </div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div>

<div class="gmail_extra" style>As an aside:</div><div class="gmail_extra" style><br></div><div class="gmail_extra"><div>The main problem with your implementation was that your "on fail" and "on last fail" scenarios dont lend themselves to doing *interesting* stuff during the failures as it always expondentially backs-off... aka: this is user-policy being enforced inside the module</div>

<div><br></div><div>And I always thought that the syntax of retry {} should emulate eval {}, as it has the same semantics, but repeated.</div><div><br></div><div>cheers,</div><div style>Mathew</div></div></div>