[Canberra-pm] The Perl OO Quiz

Daniel Pittman daniel at rimspace.net
Mon Jul 28 03:24:19 PDT 2008


"Michael Potter" <megamic at gmail.com> writes:

> So what OO technique do you use (and why)?
>
>  ✦ Class::Std
>  ✦ Class::Struct
>  ✦ Object::InsideOut
>  ✦ Moose
>  ✦ I just do good-old Perl Cookbook style 'return bless {}, $class'

This, together with "use base 'blah'" for inheritance, because most of
what I have done to date has very, very simple requirements, and the
objects were mostly either for show or for exposing a functional SOAP
interface.

If I was building a bigger system I would likely use Moose, which has a
solid foundation in OO and meta-OO design.

Regards,
        Daniel


More information about the Canberra-pm mailing list