in reply to oop - obvious AUTOLOAD question
This is also the namespace in
which the created routine exists. This is because you stripped
off the explicit package name. You could specify the namespace
if you wish. Why? Efficiency maybe. Caching the
creations of AUTOLOAD is often a reasonable idea.
But pushing the result back down the inheritance tree
may not be reasonable.
In an AUTOLOAD sub you should usually avoid handling routines
that have a name in all uppercase. Perl has special functions
like DESTROY, these subs are all named in all caps.
Also isn't the goto pointless.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: oop - obvious AUTOLOAD question
by fglock (Vicar) on Sep 25, 2002 at 18:51 UTC | |
by rir (Vicar) on Sep 25, 2002 at 20:57 UTC | |
by sauoq (Abbot) on Sep 26, 2002 at 05:11 UTC | |
by rir (Vicar) on Sep 26, 2002 at 11:48 UTC | |
by fglock (Vicar) on Sep 26, 2002 at 12:49 UTC | |
by Sidhekin (Priest) on Sep 26, 2002 at 13:19 UTC | |
|