Perl: the Markov chain saw | |
PerlMonks |
new idea - please comment on thisby uwevoelker (Pilgrim) |
on Jan 14, 2002 at 21:14 UTC ( [id://138619]=note: print w/replies, xml ) | Need Help?? |
I have a new idea: Because the only goal for this $parameter_config hashref is to validate the parameters given to the constructor new() I could write a class ValidateNewParameter.pm. The base_class creates a new ValidateNewParameter object and stores lots of parameters in it. And all the derived datatypes clone this object and add only there changes. I think this could work! And I can even reuse this behaviour in other modules. Also, base_class gets cleaner. What do you think about this idea? Have I overseen something important? Thank you very much
In Section
Seekers of Perl Wisdom
|
|