in reply to Loading Local Modules

Just a hunch, could you not unshift @INC with the desired path, where you install all the relevant modules, matching versions and all

Update:
You might need to do this in a BEGIN block or at least before use-ing the modules

HTH

Replies are listed 'Best First'.
Re: Re: Loading Local Modules
by bobn (Chaplain) on Sep 10, 2003 at 13:26 UTC

    Just a hunch, could you not unshift @INC

    How is the trivial difference between this and use lib; supposed to address the OP's problem?

    From perldoc lib:

            Saying
    
               use lib LIST;
    
           is almost the same as saying
    
               BEGIN { unshift(@INC, LIST) }
    
           For each directory in LIST (called $dir here) the lib module also
           checks to see if a directory called $dir/$archname/auto exists.  If so
           the $dir/$archname directory is assumed to be a corresponding architec-
           ture specific directory and is added to @INC in front of $dir.
    

    --Bob Niederman, http://bob-n.com

    All code given here is UNTESTED unless otherwise stated.