in reply to Name-Space problems migrating to Apache::Registry

There are at multiple ways to handle this. One is to use the approach that sheep was talking about: modify @INC to what you want, delete the modules in question from %INC, and then require them. This will reload them.

Alternatively, you can use Apache::PerlVINC which does it all for you so you don't need to change your code.

Neither of these will be as fast as not reloading anything, so you should probably think about a better way to do your customization in the long term, but they will get things working for now.

  • Comment on Re: Name-Space problems migrating to Apache::Registry

Replies are listed 'Best First'.
Re: Re: Name-Space problems migrating to Apache::Registry
by edan (Curate) on Mar 10, 2004 at 15:44 UTC

    Thanks - didn't know about Apache::PerlVINC. We are trying to avoid reloading every time, because then you lose a lot of the benefit that mod_perl is giving you. Trying to use different namespaces at least would only load once for each instance, rather than every time...

    --
    edan (formerly known as 3dan)