Install CPAN Modules without messing up the system Perl installation

linux, perl

Solution

Are you looking for something like `local::lib`

local::lib - create and use a local lib/ for perl modules with PERL5LIB

Problem

I have heard that it is best to not install modules from CPAN where your system's version of Perl is. I know how to install modules using the command line, I was just wondering if there is a way to keep CPAN separate from the system's core Perl. Should I: Download the source and make a directory specifically for these modules? Anybody have any other ideas or implementations they have used successfully? I am using Arch Linux with Perl 5.16.2.

Original source