local lib for perl

Using shared environments has it benefits, but dealing with perl install paths isn’t one of them. You can install perl to a local directory, but i’ve since found the local::lib module to be a great means of isolating a perl install similar to python’s virtual environment.

The basics:

download the locallib source, unpack and change into dir

Then you can install any module as you normally would but it will be redirected to your local directory (~/perl5)

You can have more than one local::lib and switch between the two to make things easier.