title: Installing CPAN modules without root
body: <p>I followed this <a href="http://www.dcc.fc.up.pt/~pbrandao/aulas/0203/AR/modules_inst_cpan.html">helpful tutorial</a> to get Perl installed just for my user. I am sorry to link to an external site but I think reading this is the only way to understand how to answer the question.</p>
  
  <p>Anywho, I am feeding defaults to the CPAN config - the <code>.cpan</code> and <code>CPAN</code> directories created via the tutorial - yet for some reason CPAN still wants to dig into <code>/usr/lib/</code> - which it just can't get to - when I try to install a module. This was while installing <code>DBD::CSV</code>.</p>
  
  <p>Here is the error message: </p>
  
  <pre><code>All tests successful (7 subtests UNEXPECTEDLY SUCCEEDED), 3 tests skipped.
  Files=23, Tests=706,  3 wallclock secs ( 2.28 cusr +  0.54 csys =  2.82 CPU)
  /usr/bin/make test -- OK
  Running make install
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  ERROR: Can't create '/perl5lib/lib/Bundle/DBD'
  mkdir /perl5lib: Permission denied at /usr/lib/perl5/5.8.8/ExtUtils/Install.pm line 457
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  at -e line 1
  make: *** [pure_site_install] Error 13
  /usr/bin/make install  -- NOT OK
  </code></pre>
  
  <p>It seems to be going to the wrong <code>perl5lib</code>.</p>