gugod/App-perlbrew — pull request #170 by kmcgrath (2011-11-25 04:23:05+00:00)
Title: need to quote ENV variable values

When passed on the command line setting an ENV varaible will not work this way:

PERL_MB_OPT=--install_base /home/kmcgrath/.perlbrew/libs/perl-5.14.2@perlbrew

Needs to be:

PERL_MB_OPT="--install_base /home/kmcgrath/.perlbrew/libs/perl-5.14.2@perlbrew"

## The Error
$ ./perlbrew use perl-5.14.2@perlbrew

A sub-shell is launched with perl-5.14.2@perlbrew as the activated perl. Run 'exit' to finish it.

env: /home/kmcgrath/.perlbrew/libs/perl-5.14.2@perlbrew: Permission denied

Trying to run: /home/kmcgrath/.perlbrew/libs/perl-5.14.2@perlbrew

## After Fix
$ ./perlbrew use perl-5.14.2@perlbrew

A sub-shell is launched with perl-5.14.2@perlbrew as the activated perl. Run 'exit' to finish it.

$