Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Loading Local Modules

by guha (Priest)
on Sep 10, 2003 at 10:25 UTC ( [id://290358]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://290358]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found