Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Getting constructor caller in Mo/Moo/Moose BUILD/BUILDARGS

by Eily (Monsignor)
on Jul 25, 2015 at 13:18 UTC ( #1136285=note: print w/replies, xml ) Need Help??


in reply to Getting constructor caller in Mo/Moo/Moose BUILD/BUILDARGS

Carp does something similar (with the idea that when you provide a module that someone uses incorrectly, you want to tell that person where their mistake is, rather than about the internals of your module). So you may want to look there. After a quick look the sub short_error_loc may be the one that does what you want, as it iterates through callers until it finds a package that isn't "trusted" (parent packages, packages in the trust list, and packages trusted by those ones).

  • Comment on Re: Getting constructor caller in Mo/Moo/Moose BUILD/BUILDARGS

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1136285]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2022-01-29 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?