session has asked for the wisdom of the Perl Monks concerning the following question:
Also, every time I generate an AUTOLOAD() function I add it to the symbol table like this:
*{$AUTOLOAD} = sub { return $_[0]->{$attr} };
How do you export AUTOLOADed functions, though? Exporting preloaded functions is easy but I can't quite figure out how to do the same for autoloaded ones.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exporting AUTOLOADed methods?
by Ovid (Cardinal) on Aug 12, 2002 at 20:09 UTC |