Help for this page
Class::AccessorMaker generate common accessor method with default values.
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...
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".
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.
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...
Hartog 'Sinister' de Mik <hartog@2organize.com>
www.com | www.net | www.org
No recent polls found