in reply to Re: Re: plugins and inheritance
in thread plugins and inheritance
If your subroutines don't do much work, or you're calling them recursively, then the overhead of an AUTOLOAD technique might be prohibitive. Otherwise, I wouldn't worry about it.
I recall Damian Conway's Object Oriented Perl describing a technique to declare subroutines when AUTOLOAD is called, so after the first call there is no AUTOLOAD overhead. If you're concerned enough, you might want to investigate that.
Update: The syntax for this is:
*{$name_of_subroutine_to_create} = \&Name::of::existing::subroutine
|
|---|