|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Writing constructorsby perlfan (Parson) |
| on Feb 25, 2005 at 12:02 UTC ( [id://434568]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I tend to use:
I like to initialize a member attribute field in the blessed hash, even if it is not neccessarily defined during construction. I also like to minimize the number of input parameters in my constructors, but that really is just a personal preference.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||