A thing of beauty it is…
<p>
I've spent about the last three weeks converting much of the
infrastructure code for AnteSpam to use AnyEvent.</p>
<p>
One of the small bits of fallout from using AnyEvent is that we now have
a large number of anonymous code references as callbacks, and in our
logging code, these all have the same name: <code class="verbatim">__ANON__</code>.</p>
<p>
This makes debugging output a little less useful.</p>
<p>
In browsing some code in AnyEvent::SMTP, I happened across the trick of
locally setting the <code class="verbatim">__ANON__</code> typeglob to the name you want to use used
in stacktraces and the like:</p>
One minute to read
Michael Alan Dorman