in reply to Re: What package is the method in?
in thread What package is the method in?

This doesn't look right. Perl's dispatcher will search through the entire @INC plus UNIVERSAL for the method. If it can't find it, it repeats the search from the beginning for AUTOLOAD. So if the first parent defines AUTOLOAD and the second parent defines sub foo {}, the second parent's foo {} is called before the first parent's AUTOLOAD.

Replies are listed 'Best First'.
Re^3: What package is the method in?
by ikegami (Patriarch) on May 15, 2010 at 17:39 UTC
    Thanks, Fixed. Since one should override can when one has an AUTOLOAD, I only search for AUTOLOAD if the class reports it has such a method.