Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^8: How can I find the calling object?

by strider corinth (Friar)
on Nov 18, 2002 at 21:12 UTC ( [id://213911]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Re^3: How can I find the calling object?
in thread How can I find the calling object?

The only problem is that in my particular case, I wanted to do this with a Tk::Listbox-derived class I wrote. Since it has to be a Tk module, the DB trick wouldn't work. You're probably right for all other situations, though.
--
Love justice; desire mercy.
  • Comment on Re^8: How can I find the calling object?

Replies are listed 'Best First'.
Re: Re^8: How can I find the calling object?
by John M. Dlugosz (Monsignor) on Nov 18, 2002 at 21:23 UTC
    Why not? The function implemented in DB:: can be written anywhere in the source. Your called function calls it to get the enhanced caller() info. You don't have to put your called function itself into a funny package.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-19 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found