|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: How to get function's name inside of CODE attributeby chromatic (Archbishop) |
| on Oct 05, 2011 at 16:49 UTC ( [id://929838]=note: print w/replies, xml ) | Need Help?? |
|
You can't always get a name (as attributes can apply to anonymous functions), but Sub::Information can help:
I added in Attribute::Lexical to avoid the need to monkeypatch UNIVERSAL. Improve your skills with Modern Perl: the free book.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||