If you're being a good little OO programmer, you shouldn't care if the subroutine in question is coming out of AUTOLOAD or not.
Now, Perl likes to break traditional rules (though you should know what the rules are and why they exist before you break them). You can use $object->can('meth') to check for this. can() will not return true for an AUTOLOAD 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
In reply to Re: AUTOLOAD question
by hardburn
in thread AUTOLOAD question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |