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
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