http://www.perlmonks.org?node_id=929864


in reply to Re^2: How to get function's name inside of CODE attribute (monkey see)
in thread How to get function's name inside of CODE attribute

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.

Is the code sane enough for github? or some other public code hosting site? I would like to see this.

-stvn
  • Comment on Re^3: How to get function's name inside of CODE attribute (monkey see)

Replies are listed 'Best First'.
Re^4: How to get function's name inside of CODE attribute (monkey see)
by tye (Sage) on Oct 05, 2011 at 19:44 UTC

    Actually, much of the code is included in Devel::Init. After the __END__ line is even the code I decided to leave out of Devel::Init that tries to provide compatibility with the first entrant, Attribute::Handlers.

    No, Devel::Init is not a tool for enabling developers to easily define their own attributes. But the code in Devel::Init only requires small additions and minor reworking for it to become that.

    - tye