kikuchiyo has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I've a somewhat involved question.
I use Attribute::Handlers to create function wrappers, quite like as described in this blog post by Gabor Szabo, in the section "Separating Attribute to module".
This works fine, however, I've noticed that these wrapped/replaced functions appear as __ANON__ in the call stack (as shown by the caller function in list context).
Is there a way to give a name to these anonymous subs (preferably to keep the name of the function they've replaced)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing the name of a function in the call stack
by Corion (Patriarch) on Nov 19, 2021 at 17:51 UTC | |
by kikuchiyo (Hermit) on Nov 19, 2021 at 18:13 UTC | |
by Perlbotics (Archbishop) on Nov 21, 2021 at 09:35 UTC | |
|
Re: Changing the name of a function in the call stack
by choroba (Cardinal) on Nov 19, 2021 at 17:52 UTC | |
|
Re: Changing the name of a function in the call stack
by LanX (Saint) on Nov 19, 2021 at 17:51 UTC | |
by LanX (Saint) on Nov 19, 2021 at 20:15 UTC | |
by kikuchiyo (Hermit) on Nov 19, 2021 at 20:50 UTC | |
by LanX (Saint) on Nov 19, 2021 at 20:56 UTC | |
|
Re: Changing the name of a function in the call stack
by LanX (Saint) on Nov 19, 2021 at 21:40 UTC |