in reply to Re: AUTOLOAD question
in thread AUTOLOAD question

I guess I'm not a 'good little OO programmer' because these libraries are function-oriented rather than object-oriented, so iow I have no $object to use. btw, I can't seem to find any documentation on can()...Michael

Replies are listed 'Best First'.
Re: Re: Re: AUTOLOAD question
by hardburn (Abbot) on Jun 11, 2003 at 14:34 UTC

    Even if you're not using an object system, you can still make use of OO concepts.

    can() is part of the UNIVERSAL class, which is the base for all objects in Perl. Even though you're not using the object system, you can still call it via PackageName->can('method').

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    Note: All code is untested, unless otherwise stated

      can() is exactly what I needed. Cool stuff. Thanks again.