in reply to New Module Consideration?
With the caveat that I've never used either of the modules you're thinking about reinventing, I do have some thoughts.
Since you're basically adding new functionality, this is a case where you want to think about subclassing existing modules. Both of the two you mention are object-oriented, and so it seems you ought to be able to do this without much trouble (although Data::Validator::Item may pose slightly more of a challenge as it's designed as a factory class). Subclassing will have two major advantages: You'll inherit behavior that you don't want to replicate needlessly, and you won't further pollute the CPAN namespace. Compare Data::Validate::OO to, say, Data::FormValidator::Extensible.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: New Module Consideration?
by Aristotle (Chancellor) on Jan 01, 2003 at 02:38 UTC | |
by djantzen (Priest) on Jan 01, 2003 at 03:12 UTC |