in reply to different versions of same Perl module in different Apache vhosts

Yes, just install it in to different directories and then use lib "/usr/lib/production" at the top of your production scrips, alteratively set the perl5lib enviroment variable someplace.
  • Comment on Re: different versions of same Perl module in different Apache vhosts
  • Download Code

Replies are listed 'Best First'.
Re^2: different versions of same Perl module in different Apache vhosts
by perrin (Chancellor) on Jun 05, 2004 at 22:57 UTC
    Nope, this is a persistent Perl interpreter. Once it resolves a certain module it doesn't look again. So, whichever version of "My::Module" gets accessed first is the only that will ever get loaded.
      What if I were to use Apache::Reload in addition to modifiying @INC for the separate vhosts? Would mod_perl look for the specific file it loaded before or would it search through @INC for the module to check if it needs to be reloaded?