in reply to Re: Problem with "use Exporter qw(import);"
in thread Problem with "use Exporter qw(import);"
Using inheritance to get one function is quite overkill. I've had my share of problems from such things. Better is to just import the one import function you want. Unfortunately, old versions of Exporter.pm didn't support the easy way of doing this. I just use:
require Exporter; *import = \&Exporter::import;
You can even put those two lines inside of a BEGIN block if you like.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem with "use Exporter qw(import);"
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 | |
|
Re^3: Problem with "use Exporter qw(import);"
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 | |
|
Re^3: Problem with "use Exporter qw(import);"
by TilRMan (Friar) on Nov 04, 2004 at 04:02 UTC |