Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Determining a module's user

by clueless newbie (Friar)
on Oct 10, 2007 at 17:18 UTC ( #644034=note: print w/ replies, xml ) Need Help??


in reply to Re: Determining a module's user
in thread Determining a module's user

For me (Windows/Activestate 5.8) it doesn't. If "main" calls "package" and "package" uses the filtering module, (caller( 1 ))[0] returns not "package" but "main".

I've found a poor work around that involves "use myFilter __PACKAGE__;".

Thanks, Fletch!
--- it seems to be (caller(1))[1]!


Comment on Re^2: Determining a module's user
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2014-08-23 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls