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
In reply to Re^2: Problem with "use Exporter qw(import);"
by tye
in thread Problem with "use Exporter qw(import);"
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |