Basically, I tried this on Ubuntu and OS X:
export PERL_LOCAL_LIB_ROOT=~/.perl5
wget -O- http://cpanmin.us | perl - -l ~/.perl5 App::cpanminus local::lib
eval `perl -I ~/.perl5/lib/perl5 -Mlocal::lib`
Yet the third line insists on creating and installing all the stuff in ~/perl5
rather than ~/.perl5
. How can I overcome this behaviour?