#!/bin/bash

# ~/.pause: "user %s\npassword %s\n"

. `dirname "$0"`/.helpers.sh
umask 0077

perldir=$HOME/perl5
setup_runtime_dir perl `basename "$perldir"`

pbrc=$perldir/perlbrew/etc/bashrc
# get perlbrew if it's already installed
test -f "$pbrc" && . "$pbrc"

which perlbrew &> /dev/null || \
  curl -L install.perlbrew.pl | bash

# update/activate perlbrew
test -f "$pbrc" && . "$pbrc"

which cpanm    &> /dev/null || \
  perlbrew install-cpanm

# TODO: perlbrew@std or local::lib

#!/bin/bash

# ~/.pause: "user %s\npassword %s\n"
# ~/.local/share/.cpan -> ~/.cpan/

. `dirname "$0"`/.helpers.sh
umask 0077

perldir=$HOME/perl5
setup_runtime_dir perl `basename "$perldir"`

pbrc=$perldir/perlbrew/etc/bashrc
# get perlbrew if it's already installed
test -f "$pbrc" && . "$pbrc"

which perlbrew &> /dev/null || \
  curl -L install.perlbrew.pl | bash

# update/activate perlbrew
test -f "$pbrc" && . "$pbrc"

which cpanm    &> /dev/null || \
  perlbrew install-cpanm

# TODO: perlbrew@std or local::lib

Comment on ~/.local symlink for cpan
Comment on ~/.local symlink for cpan
