Keep It Simple, Stupid | |
PerlMonks |
Re^2: How to get function's name inside of CODE attribute (monkey see)by tye (Sage) |
on Oct 05, 2011 at 18:40 UTC ( [id://929851]=note: print w/replies, xml ) | Need Help?? |
I added in Attribute::Lexical to avoid the need to monkeypatch UNIVERSAL. You don't have to read much of the code before you get to:
So, this module avoids adding methods to UNIVERSAL (I assume), but adding a super class after the fact is certainly also monkey patching. (Yes, I actually implement attributes without monkey patching UNIVERSAL at all and much more simply and, IMHO, sanely and buttoning that up for CPAN is on my to-do list.) - tye
In Section
Seekers of Perl Wisdom
|
|