go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As a clarification, if you write
Then your sub TRACE will be called once if you write
but it will not be called for each call of mysub. 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 Hook::LexWrap can be helpful for that purpose. In reply to Re: Core module: Attribute::Handlers behaviour
by moritz
|
|