Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Can caller() or the call stack be tricked?

by Ralesk (Pilgrim)
on Aug 06, 2013 at 12:14 UTC ( [id://1048110]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package OO::SubModule;
    
    sub new {
    ...
    }
    
    ## You can say $self->_debug("booya") to do $self->{debug_cb}->("booya
    +") without it ending up in the call stack
    
  2. or download this
    ## both apps
    
    $oosub = OO::SubModule->new({
    ...
    
    ## Any occurrence of $self->_debug("booya") within OO::SubModule reall
    +y does _debug("booya") of the main app, this way
    ## Without getting in the call stack, right?
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-03-19 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found