Don't ask to ask, just ask | |
PerlMonks |
Name of caller if aliased?by LanX (Saint) |
on Feb 25, 2015 at 04:15 UTC ( [id://1117778]=perlquestion: print w/replies, xml ) | Need Help?? |
LanX has asked for the wisdom of the Perl Monks concerning the following question:
Precious Monkses! (caller(0))[3] shows me the name of the currently executed function. But in case of importing/aliasing it'll be the original one not the alias' name. Any way to find the name of the alias? details:
prints
any straight forward way to get "main::func" in the second case? (no, parsing the calling line is not an option) Thankses for your attention! :)
Back to
Seekers of Perl Wisdom
|
|