Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Using CPAN to install modules in $HOME?

by ehdonhon (Curate)
on Oct 31, 2002 at 23:39 UTC ( [id://209590]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Using CPAN to install modules in $HOME?
in thread Using CPAN to install modules in $HOME?

Perl should always search for libraries in your directories in the order that they appear in @INC. If '/path/to/my/dir' is the first thing in @INC, perl will look there first.

You might want to try something like this:

#!/usr/bin/perl use lib '/path/to/my/dir'; use DBI; use Data::Dumper; print Dumper( \@INC, \%INC );

That will tell you exactly what is in your @INC, and exactly where Perl is finding all its libraries.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-25 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found