in reply to How to call AUTOLOAD before @ISA?

Contrary to documentation, it can be done for all methods that are not in the UNIVERSAL class. (Things like can and isa.)

Have two classes, the first of which has your desired @ISA, the second of which has an AUTOLOAD. Bless your objects into the second, and have the AUTOLOAD throw method calls to the first class upon need.

You should note that this will significantly slow method calls to this class. This can be sped up by having the base class populated with your wrapper in the AUTOLOAD. Still a performance hit but not as bad.

  • Comment on RE (tilly) 1: How to call AUTOLOAD before @ISA?