Skip to content

Latest commit

 

History

History
45 lines (22 loc) · 815 Bytes

README.md

File metadata and controls

45 lines (22 loc) · 815 Bytes

Perlswitcher

Perlswitcher - Switch between system perl + local::lib and user perl

This is a cheap script to switch between system perl with local::lib and user perl (installed by Perlbrew) without local::lib. Environment variables are set so that cpanm always knows where to install (local::lib or user perl). Nothing will be installed system-wide, no root permissions are required.

INSTALLATION

  • Install Perlbrew (http://perlbrew.pl/).

  • mkdir ~/perl5/userperls

  • Copy this script to ~/perl5/userperls/bashrc

  • echo '. /perl5/userperls/bashrc' >>/.bashrc

USAGE

$ perlswitch perl-5.18.4

$ perlinfo

$ perldoc ~/perl5/userperls/bashrc

NOTES

Symlinks starting with path- are added to $PATH:

ln -s /var/www/perl5/perlbrew/bin ~/perl5/userperls/path-perlbrew-bin