Saturday, 10 April 2010

managing multiple local perl installations: perlbrew

Gugod script for managing different local perl installations:


I have my perl 5.10.1 installed with local::lib and was planing to install the 5.12RC. This is an opportunity to try the Gugod app:

App::perlbrew Manage perl installations in your $HOME

This has a nice way of changing between perl version. I have not tried yet but from the perldoc it seems easy and clean.

Copied from the SYNOPSIS:


# Initialize
perlbrew init

# Install some Perls
perlbrew install perl-5.8.1
perlbrew install perl-5.11.5

# See what were installed
perlbrew installed

# Switch perl in the $PATH
perlbrew switch perl-5.11.5
perl -v

# Switch to another version
perlbrew switch perl-5.8.1
perl -v

# Switch to a certain perl executable not managed by perlbrew.
perlbrew switch /usr/bin/perl

# Or turn it off completely. Useful when you messed up too deep.
perlbrew off

# Use 'switch' command to turn it back on.
perlbrew switch perl-5.11.5

1 comment:

MCAndre said...

Only one problem: "perlbrew switch" has no effect on Debian 6 or Ubuntu 10.10. Merf!