good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: My first stab at OO perl...by mp (Deacon) |
on Jul 16, 2002 at 16:57 UTC ( [id://182154]=note: print w/replies, xml ) | Need Help?? |
You could conserve resources by generating constructors at "compile" time rather than every time the constructor (new) is called. Class::MethodMaker could do this for you:
Or you could update 'new' above to check to see if the accessor exists before re-building it.
In Section
Seekers of Perl Wisdom
|
|