Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: How to get function's name inside of CODE attribute (monkey see)

by stvn (Monsignor)
on Oct 05, 2011 at 19:29 UTC ( #929864=note: print w/replies, xml ) Need Help??


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        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929864]
help
Chatterbox?
[ambrus]: MLX: if it's a work email, then it's probably not Uncle Sam that matters, but what the account managing server at work thinks your name is. Those can differ. For example, we've had two co-workers with identical real name at one point,
[ambrus]: so one got a stupid suffix in the email account (people have email address based on their real name here usually).

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2017-01-19 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.