but yes i have to instantiate the class and pass it as an argument (that's not problem, well if you are an OO purist it is)why would that be a problem for OO purists?
update: one might think (i thought that too for a while) that only
$coderef->($object, $arg1, $arg2, ...);
will work, which, of course, isn't too nice OOP.
In reply to Re^3: reference to a subroutine inside a package
by tinita
in thread reference to a subroutine inside a package
by imcsk8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |