in reply to Re^4: OOP: ->Coderef for calling Private Methods (possibilites?)
in thread OOP: Obj->Coderef for calling Private Methods
the right side is a method name or a simple scalar variable containing either the method name or a subroutine reference, and the left side must be either an object (a blessed reference) or a class name (that is, a package name). See perlobj.
I don't see how it could be clearer that a reference is allowed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: OOP: ->Coderef for calling Private Methods (possibilites?)
by LanX (Saint) on Dec 13, 2008 at 20:30 UTC | |
by ikegami (Patriarch) on Dec 13, 2008 at 20:34 UTC | |
by LanX (Saint) on Dec 13, 2008 at 20:42 UTC | |
by ikegami (Patriarch) on Dec 13, 2008 at 20:46 UTC | |
by LanX (Saint) on Dec 13, 2008 at 21:00 UTC |