Just another Perl shrine | |
PerlMonks |
Re: Generally accepted style in Perl objectsby stephen (Priest) |
on Dec 29, 2000 at 03:56 UTC ( [id://48728]=note: print w/replies, xml ) | Need Help?? |
The question is, if you make a change to the internals of one class, are you going to affect other classes?
If you're messing with the internals of your class in three other modules, then you and other future developers will be sticking pins in voodoo dolls shaped like you if you have to make changes to the class in the future. :) Class::MethodMaker will let you create those methods without having to go through and type all those subroutines. This will also make them easier to change in the future. stephen
In Section
Seekers of Perl Wisdom
|
|