Does defining a function really clear the cache, or just defining a named function? Defining a function should have no effect, just the modification of the symbol table that comes from defining named functions.
Comment on Re^7: Using AUTOLOAD to create class methods