Perlbrew

I recently run into a very neat project called Perlbrew (http://perlbrew.pl). Perlbrew allows you to setup and manage multiple sandboxed Perl installations on a single OS.

-> Basic use

$ perlbrew install perl-5.16.0
$ perlbrew switch perl-5.16.0

-> Run the same script against all Perl installations

$ perlbrew exec perl myprogram.pl

Additionally, thanks to very nice cpanm integration, Perlbrew totally streamlines packages management
-> Install modules using cpanm on specified Perl installation

$ perlbrew switch perl-5.16.0
$ cpanm Moose
$ perlbrew list-modules

-> Move all modules from one installation (perl-5.16.0) to another (perl-5.16.2)

$ perlbrew install perl-5.16.2
$ perlbrew switch perl-5.16.0
$ perlbrew list-modules | perlbrew exec –with perl-5.16.2 cpanm

Check out their site for more info.

Leave a Reply