Skip to content

Instantly share code, notes, and snippets.

@mishin
Forked from miyagawa/brewyourperl.sh
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mishin/3cb7e4c56eb6edd6a309 to your computer and use it in GitHub Desktop.
Save mishin/3cb7e4c56eb6edd6a309 to your computer and use it in GitHub Desktop.
# install perlbrew
curl -O -L http://xrl.us/perlbrew
perl perlbrew install
rm perlbrew
# setup perlbrew
~/perl5/perlbrew/bin/perlbrew init
echo "source $HOME/perl5/perlbrew/etc/bashrc" >> ~/.bashrc
# restart your shell
exec $SHELL
# install perl 5.12.0: this takes ~10 minutes
perlbrew -v install perl-5.12.0
# switch to it
perlbrew switch perl-5.12.0
# install cpanminus
curl -L http://cpanmin.us | perl - --self-upgrade
# Congratulations! Now you can pull in your favorite modules
cpanm Task::Plack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment