Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Move Perl modules to new CentOS VPS

by MidLifeXis (Monsignor)
on Nov 08, 2013 at 19:28 UTC ( #1061744=note: print w/replies, xml ) Need Help??

in reply to Move Perl modules to new CentOS VPS

Do not mess with the OS-installed perl.

Longer answer: Unless trying to make your application installable by all, install a local perl distribution into its own location that your application has been tested with, including all required modules and configurations. This allows you to decouple your application from the OS-required version of perl, minimizes the chance of breaking the OS by touching the OS-required version of perl, and minimize the chance of OS upgrades breaking your application (for the same reason).

(Update) Use the build toolchain. Configure the prerequisites in your Makefile.PL or Build.PL, and use cpanm to build a self-contained library directory of the requirements. You should include everything that your application directly uses in the prerequisites (not just the top level module, and not modules that you don't directly use). You then have a set of steps by which you can target any additional platforms (or CPAN updates, etc). See also: