Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Determining a module's user

by clueless newbie (Chaplain)
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]!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://644034]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2016-12-04 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (69 votes). Check out past polls.