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

Re^2: Determining a module's user

by clueless newbie (Hermit)
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?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2016-02-11 11:44 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (368 votes), past polls