in reply to Problem with "use Exporter qw(import);"
The "use Exporter qw(import);" is asking for the function Exporter::import to be imported to your current package so you can call it as simply "import". But you don't need to import it; you have inherited it. All you need is:
By the way, if your @EXPORT and @EXPORT_OK lists are really empty as you show here, there's no point in inheriting from Exporter anyway.require Exporter; our @ISA = qw(Exporter);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with "use Exporter qw(import);"
by tye (Sage) on Nov 03, 2004 at 21:49 UTC | |
by diotalevi (Canon) on Nov 03, 2004 at 22:25 UTC | |
by tye (Sage) on Nov 03, 2004 at 23:02 UTC | |
by diotalevi (Canon) on Nov 03, 2004 at 23:32 UTC | |
by tye (Sage) on Nov 04, 2004 at 00:30 UTC | |
by simonm (Vicar) on Nov 03, 2004 at 23:07 UTC | |
by dragonchild (Archbishop) on Nov 04, 2004 at 02:26 UTC | |
by simonm (Vicar) on Nov 14, 2004 at 08:05 UTC | |
by TilRMan (Friar) on Nov 04, 2004 at 04:02 UTC |