in reply to Re: Class capabilities
in thread Class capabilities

You do raise some good points. I do think the Params::Validate suggestion is the best so far (I always forget about that module), but I do sort of like the idea of a module published which states explicitly that it depends on the can() method properly functioning (meaning that if AUTOLOAD or something similar is being used that can should be overridden). Too often we let ourselves get sloppy and forget little details like that.

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^3: Class capabilities
by dragonchild (Archbishop) on Oct 12, 2005 at 12:57 UTC
    A quick CPAN search for "interface" brings up the interface module. That looks promising. It references Class::Contract, which may be a little too much koolaid for you, but it would definitely do what you're looking for. :-)

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?