Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: How do I make a constructor?by jamesduncan (Novice) |
on Apr 08, 2003 at 11:34 UTC ( [id://248886]=note: print w/replies, xml ) | Need Help?? |
I tend to use:
That way all subclasses can initialize themselves in a standard way with something along the lines of: and I'll know if something goes wrong...
In Section
Seekers of Perl Wisdom
|
|