perlbrew
manages multiple Perl installations in user space
TLDR
Install Perl version
SYNOPSIS
perlbrew [install] [switch] [use] [list] [options] [args]
DESCRIPTION
perlbrew manages multiple Perl installations in user space. It enables switching between versions without system access.
Installations compile Perl from source in ~/perl5/perlbrew. Each version is independent with its own modules and libraries.
Libraries provide isolated module sets for the same Perl version. This enables project-specific dependencies without conflicts.
Switch sets the default version for new shells. Use changes only the current shell. This flexibility supports development across versions.
cpanm integration simplifies module installation. It's installed once and works with all managed Perl versions.
Exec runs commands against specific versions, useful for testing compatibility or building packages.
PARAMETERS
install VERSION
Install Perl version.available
List available versions.list
List installed versions.switch VERSION
Set default version.use VERSION
Use version in current shell.off
Disable perlbrew in current shell.lib create NAME
Create library.lib list
List libraries.exec CMD
Run command with Perl version.install-cpanm
Install cpanminus.self-upgrade
Upgrade perlbrew.--notest
Skip tests during install.-j N
Parallel build jobs.
CAVEATS
Building Perl takes time. Disk usage accumulates with versions. Some modules need recompilation when switching. Not for system Perl replacement.
HISTORY
perlbrew was created by Kang-min Liu (gugod) around 2010, inspired by Ruby's rvm and rbenv. It addressed the need for multiple Perl versions in development, especially for testing CPAN module compatibility.
