in reply to Class capabilities

Have you considered using the can function from UNIVERSAL?

Update: As Ovid says, UNIVERSAL::can shouldn't be used directly, but as an object method. I included the link only to show where to find the documentation.

Replies are listed 'Best First'.
Re^2: Class capabilities
by Ovid (Cardinal) on Oct 12, 2005 at 17:28 UTC

    UNIVERSAL::can should not be used directly. If a class overrides can (which they probably should if they use AUTOLOAD), UNIVERSAL::can will return incorrect results.

    Cheers,
    Ovid

    New address of my CGI Course.