Because it's just like a normal sub calling itself since the coderef is pointing to the sub that is currently being called.
I don't think I follow. How does it work on non-fake subs then? By your reasoning wouldn't they also recurse? (They don't.)
Unfortunately my actual situation in Devel::Profiler is complicated enough that neither of your solutions will apply directly. But they have given me some good ideas.
Thanks,
-sam
In reply to Re: Re: How to instrument a "fake" subroutine?
by samtregar
in thread How to instrument a "fake" subroutine?
by samtregar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |