my $func_Ref = \&$self->isInst; $self->$func_Ref( ... );
see OOP: Obj->Coderef for calling Private Methods for details.
Cheers Rolf
PS: But I'm not sure if the performance win does worth it. AFAIK Perl does a lot of optimization like method caching to speed things up.
UPDATE: typo fixed
In reply to Re: local vs. $self-> pointer to subroutine
by LanX
in thread local vs. $self-> pointer to subroutine
by ISAI student
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |