note
moritz
As a clarification, if you write
<code>
use Attribute::Handlers;
sub TRACE :ATTR(CODE) {
...
}</code>
<p>Then your sub TRACE will be called once if you write
<code>
sub mysub :TRACE { }
</code>
<p>but it will not be called for each call of <c>mysub</c>.
<p>So to achieve what you want, you have to write your TRACE function in a way that, if the appropriate configuration option is set, it wraps the function in a way that makes the tracing happen. Maybe [mod://Hook::LexWrap] can be helpful for that purpose.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-616540">
[http://perl6.org/|Perl 6 - the future is here, just unevenly distributed]
</div></div>
1000101
1000101