use Test::More;
You are deliberating over what tool to use, but I would invite you to postpone that question and get busy writing a test suite.
What do you want your class to do? Have your test suite cover every interface method (including the constructor and the accessors), but above all convince yourself that a class that passes your tests will accomplish your goals.
I confess I find it hard to write tests when I really want to be coding the implementation, but I remind myself that
Now you can safely pick a tool at random from among your favorite answers in this thread. You can even change your mind later and convert your classes to a different implementation. If your design is properly encapsulated, you'll be fine.
That said, I do have my own preference for inside-out or flyweight implementations. I think building classes in this way is like use strict. It catches dangerous practices (in this case, accessing your object's internals directly) at an earlier stage of development.
In reply to Re: Object oriented Perl: What's popular?
by Narveson
in thread Object oriented Perl: What's popular?
by amarquis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |