in reply to AUTOLOAD question
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: AUTOLOAD question
by Lachesis (Friar) on Jun 11, 2003 at 14:34 UTC | |
|
Re: Re: AUTOLOAD question
by Anonymous Monk on Jun 11, 2003 at 14:29 UTC | |
by hardburn (Abbot) on Jun 11, 2003 at 14:34 UTC | |
by Anonymous Monk on Jun 11, 2003 at 14:48 UTC |