![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: import not foundby Anonyrnous Monk (Hermit) |
on Jan 27, 2011 at 15:17 UTC ( [id://884576]=note: print w/replies, xml ) | Need Help?? |
I had expected that by compiling Config.pm, the Exporter would inject an import() method It doesn't. When you use @ISA='Exporter', the method would be looked up via inheritance. But you can alternatively directly import Exporter's import method into your package:
Also, you probably wanted to call import as a method, i.e. using the arrow notation:
In Section
Seekers of Perl Wisdom
|
|