When configuring perl you could tell it to install in /opt/perl:
./Configure -des -Dprefix=/opt/perl
Be sure to read the Readme and INSTALL files prior to installation. Your newly built perl will have it's own version of cpan (in the example above under /opt/perl/bin/cpan), it knows where to put modules.
In reply to Re^3: path to perl on umbuntu
by marto
in thread path to perl on umbuntu
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |