in reply to Redefining Exported Subroutines (esp. in mod_perl/mason)

You could define your own Exporter that did force the symbol in. Put that in another module that redefines the proper routines in Exporter:: (saving away the old ones, even chaining to them).

Use it like this:

use ForceExport; # hypothetical use My::Module 'testsub'; no ForseExport; # put it back the way it was.

Replies are listed 'Best First'.
Re (tilly) 2: Redefining Exported Subroutines (esp. in mod_perl/mason)
by tilly (Archbishop) on Jun 19, 2001 at 02:40 UTC
    This will not and cannot work.

    See my update explaining what the problem really is (now that I read the question properly.)

Re: Re: Redefining Exported Subroutines (esp. in mod_perl/mason)
by blakem (Monsignor) on Jun 19, 2001 at 03:18 UTC
    I actually tried defining my own import function (My::Module::import) before I posted. It didn't work the way I had hoped. Thanks though.

    -Blake