Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Calling a method from class / subclass?

by arkturuz (Curate)
on Oct 05, 2007 at 09:10 UTC ( #642860=note: print w/ replies, xml ) Need Help??


in reply to Re: Calling a method from class / subclass?
in thread Calling a method from class / subclass?

Quote: what mylog ($PACKAGE::mylog) is for

To store the value you need variable name: that's $mylog. To store it in the current package, you can use $__PACKAGE__::mylog.

Quote: Again, why Log::Log4perl is assigned to _PACKAGE_::mylog?? What does this mean?

It could mean a number of things. One of them could be that author of the code wants a package global variable (variable that is global in the package defined) to be accessed from outside of the package.


Comment on Re^2: Calling a method from class / subclass?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-10-02 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (43 votes), past polls