in reply to deprecation problem
The warning you get is because you added it to the inheritance tree, and Perl found SelfLoader::AUTOLOAD, and it's generally a bad idea to inherit an AUTOLOAD for functions rather than methods. It's all OO stuff. Here's code that works for me:
package common; use SelfLoader; require Exporter; @ISA = qw( Exporter ); @EXPORT = qw( process_error ); __DATA__ sub process_error { print "foo!\n"; }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who could use a job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: deprecation problem
by skerr1 (Sexton) on Feb 12, 2002 at 16:41 UTC |