more useful options | |
PerlMonks |
Re^2: Dynamically generate setter/getter methods [Updated]by Arunbear (Prior) |
on Dec 20, 2020 at 16:36 UTC ( [id://11125501]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Cool Uses for Perl
|
|