Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to effectively update perl modules which are installed in my homedir

by sundialsvc4 (Abbot)
on Apr 05, 2011 at 17:35 UTC ( [id://897563]=note: print w/replies, xml ) Need Help??


in reply to How to effectively update perl modules which are installed in my homedir

Start by reading the documentation for cpan, and its various configuration options.   Then, search here (and on Google) for “Perl as a non-root user.”

The best and safest way to build your own configuration, in my opinion, is to not attempt to “update” the Perl modules that are set up by your local configuration, but rather to use facilities like the PERL5LIB environment-variable and the use lib statement to “supersede” them.   You do this by arranging for CPAN to install modules into a directory of your choosing, then putting that directory ahead of the default dirs in the @INC list.   (Which you can examine by the command, perl -V (with a capital “V”).

There a couple of common situations where you would choose to do this.   One is when you’re running a Linux distro that uses Perl for its system-administration and package-installation tools:   you probably don’t want to disrupt those unless you want to learn a lot about Linux in a big hurry.   The other is when you’re running a Perl web-site at a shared hosting facility.   Not only is it impossible to update their system-wide libraries, but you don’t want to be in full control of what your (customer’s | employer’s) website actually uses and sees.

Log In?
Username:
Password:

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

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

    No recent polls found