![]() |
|
"be consistent" | |
PerlMonks |
Re: Intsalling perl 5.10 on centos 6.6by sundialsvc4 (Abbot) |
on Jul 23, 2018 at 18:13 UTC ( #1219126=note: print w/replies, xml ) | Need Help?? |
OS packages are intended to maintain the “official” version of Perl that is installed, say, in /usr/bin, and which might be expected or required by fundamental system-maintenance commands. (For instance, IIRC most of Red Hat’s maintenance-command structure is built around Perl.) I would not dare to touch this, for fear of (literally) hosing the entire system. However, you can always install one-or-more other Perl-interpreter executables, say in /usr/local, and arrange for your $PATH environment-variable to specify this directory first, so that the perl command, when typed-in by you, will run this executable. In similar fashion, you can install your own CPAN packages into a custom location, and arrange for the $PERL5LIB environment-variable to find it first. Environment-variable settings are ordinarily established per-user in the .bash_profile file, or, in the Windows environment, in the Registry. A very good Google-search key would be “Perl in a shared hosting environment,” since this is a very common use-case: you want to run a Perl-based web site on a shared host but of course you can’t modify the host’s configuration.
In Section
Seekers of Perl Wisdom
|
|