- or download this
Class::AccessorMaker
generate common accessor method with default values.
- or download this
With constructor
package Users;
...
which assumes you are a guest by default. The second example
is some sort of mailer-object. And the third is used by a lot
of serial killers out there...
- or download this
The AccesorMaker takes in, at use-time, a hash-reference and an
extra keyword. It uses the keys of the hash-reference to create
...
If you want your constructor to run your objects "init()" routine
you can specify the keyword "new_init". If you want to write your
own "new()" routine you can use "no_new".
- or download this
This module is still under some sort of development, and I am
expecting to release things like ReadOnly / WriteOnce accessor
methods in the near future. I alredy have
Class::AccessorMaker::Private out there for you, which could
prove to be very usefull for you.
- or download this
Please do not put those perl-reserved names in there like
DESTROY, import, AUTOLOAD, and so on. It will hurt you badly.
...
And besides, there is going to be someone out there who is
actualy going to put it to good use...
- or download this
Hartog 'Sinister' de Mik <hartog@2organize.com>