in reply to Using AUTOLOAD to create class methods
You ought to know that every time you create or delete subroutines, add, remove, or replace them from symbol tables, or modify any @ISA, you invalidate perl's interpreter-wide method cache. You should avoid doing this kind of work during runtime because it forces perl to discard its cached information about method lookups and forces it to do new lookups for every method call from then on (til they're repeated and then it uses the newly cached versions).
|
|---|