Create setup script
# Reset any environment variables that could confuse `perlbrew`:
# decide where you want to install perlbrew:
[[ -f "$PERLBREW_ROOT/etc/bashrc" ]] && source "$PERLBREW_ROOT/etc/bashrc"
Create installation script
curl -L https://install.perlbrew.pl | bash
# Decide which version you would like to install:
perlbrew install "$version"
perlbrew switch "$version"
Run installation script:
Add to the end of your
[[ -f ~/.perlbrew.sh ]] && source ~/.perlbrew.sh