in reply to Re^2: Problem with "use Exporter qw(import);"
in thread Problem with "use Exporter qw(import);"

I'm partial to writing this using goto, which lets us defer the loading of Exporter until we actually need it.
sub import { require Exporter; goto &Exporter::import }

Replies are listed 'Best First'.
Re^4: Problem with "use Exporter qw(import);"
by dragonchild (Archbishop) on Nov 04, 2004 at 02:26 UTC
    Caveat - you actually want to pre-load Exporter when using mod_perl and similar persistent architectures.

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      Caveat - you actually want to pre-load Exporter when using mod_perl and similar persistent architectures.

      If you're running mod_perl with any sizable set of modules, Exporter is almost certain to be pre-loaded by something else.