Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^7: OOP: ->Coderef for calling Private Methods (possibilites?)

by ccn (Vicar)
on Dec 13, 2008 at 20:27 UTC ( [id://730198]=note: print w/replies, xml ) Need Help??


in reply to Re^6: OOP: ->Coderef for calling Private Methods (possibilites?)
in thread OOP: Obj->Coderef for calling Private Methods

> How does Perl know which package the subroutine is in?

It concerns calling by name only. If perl has a reference to code it just executes it. There is no need to determine a package for the call. And the sub itself knows the package it belongs to.

  • Comment on Re^7: OOP: ->Coderef for calling Private Methods (possibilites?)

Replies are listed 'Best First'.
Re^8: OOP: ->Coderef for calling Private Methods (possibilites?)
by LanX (Saint) on Dec 13, 2008 at 20:34 UTC
    I think it's clear that I talk about misleadingly short docs.

    Documentation has to be clear for any user, even without deeper knowledge of perl internals and the need to run experiments!

    Cheers Rolf

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found