> 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 reply to Re^7: OOP: ->Coderef for calling Private Methods (possibilites?)
by ccn
in thread OOP: Obj->Coderef for calling Private Methods
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |