in reply to Re: Re: AUTOLOAD question
in thread AUTOLOAD question

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

Replies are listed 'Best First'.
Re: AUTOLOAD question
by Anonymous Monk on Jun 11, 2003 at 14:48 UTC
    can() is exactly what I needed. Cool stuff. Thanks again.