in reply to (Ovid) Re: Autoload'ed class method calls
in thread Autoload'ed class method calls
More importantly, he needs to declare $AUTOLOAD in package namespace, with
oruse vars qw($AUTOLOAD);
The rest seems to go through use strict 'refs'OK.our $AUTOLOAD;
Update: Ovid I am humbled! It's interesting how staring at a piece of code can lead you to wrong conclusions (in my case exacerbated by lack of sleep and coffee).
It also shows what a snarfy beast AUTOLOAD can be. I've written pseudo-methods in AUTOLOAD myself, but usually solved problems like hackdaddy's by stepping through with the debugger.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re(3): Autoload'ed class method calls
by Ovid (Cardinal) on Apr 05, 2002 at 18:46 UTC |