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?? |
> 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.
In Section
Seekers of Perl Wisdom
|
|