Create a new account
Thought for the day: if you provide an AUTOLOAD for a class, you should also provide a can, so that you will avoid the situation of $object->can('hoozits') returning false where 'hoozits' is an autoloaded method.
Either that, or put the actual make-the-routine stuff in can(), and have AUTOLOAD just call the can() to make return the routine (if can), and then just put that into the symbol table and move on. Too bad this isn't in any of examples of AUTOLOAD use that I've seen.
Get More Comments