Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Using Modules in a local directory

by jeroenes (Priest)
on Jul 10, 2001 at 16:41 UTC ( #95288=note: print w/replies, xml ) Need Help??

in reply to Using Modules in a local directory

Hi Speedfreak,

If you put a perl module in the directory you call perl from, let's say /home/jeroenes/work as in:

cd /home/jeroenes/work perl /var/scripts/ mylocalfile.txt
Than perl searches the current/calling dir: /home/jeroenes/work for .pm modules. The use Blah::Foo; statement is seen as "look for in ./Blah/". So use Blah::Foo; will fetch /home/jeroenes/work/Blah/ for you.

As for your second question, see the docs of ExtUtils::MakeMaker. In short, add a LIB directive to the commandline: perl LIB=/home/jeroenes/work"

Hope this helps,

"We are not alone"(FZ)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://95288]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2017-03-25 22:29 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (313 votes). Check out past polls.