Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 scrutinizing the Monastery: (6)
As of 2014-07-14 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (255 votes), past polls