in reply to Re: path to perl on umbuntu
in thread path to perl on umbuntu

Hi

I understand that I can use the Perl5LIB env variable to modify the @INC files. That was what I was going to do in the first place before this thread advised me to leave the sysytem perl alone :)

On that issue My problem is more with Linux and CPAN than Perl. I have looked into how CPAN works but I don't know how I configure CPAN to install modules to a specific location. Also when I get modules I want, they will have dependencies on other modules and CPAN might get new versions of these modules. I don't know if this will have bad affects on any system perl that depends on these 'updated' modules.

Many thanks for your help

Replies are listed 'Best First'.
Re^3: path to perl on umbuntu
by ig (Vicar) on Oct 27, 2010 at 18:42 UTC

    You might find some helpful guidance in Yes, even you can use CPAN Installing Modules Without Root.

    If your personal library appears before the system libraries in the @INC variable (the list of directories perl searches for modules) then perl will find the modules you have installed and use them instead of whatever version is in the system libraries. You may have issues with dependencies but you can install as much as you want/need to in your personal library to satisfy those dependencies. This will work until you need perl itself to be different (e.g. different compile time options). But this isn't likely to be a problem in the short term.