in reply to Re: Dynamically generate setter/getter methods [Updated]
in thread Dynamically generate setter/getter methods
The AUTOLOAD approach has some caveats to be aware of:
1. It will be marginally slower because each call to the accessor will search the inheritance tree before calling AUTOLOAD
2. Querying the object with can will return a false result, which is probably not what users of the object would expect.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Dynamically generate setter/getter methods [Updated]
by stevieb (Canon) on Dec 20, 2020 at 19:28 UTC |
In Section
Cool Uses for Perl