Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Loading Local Modules

by bobn (Chaplain)
on Sep 10, 2003 at 13:26 UTC ( [id://290418]=note: print w/replies, xml ) Need Help??


in reply to Re: Loading Local Modules
in thread Loading Local Modules

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://290418]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-03-28 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found