Installing modules locally
Run perl -MCPAN -e shell from the command line and it will ask you some questions. Make sure you say don't fill in stuff for me. Just say no.
To rerun the configuration, enter the following command at the cpan shell o conf init.
When you get to a question that says something about PREFIX, you will want to enter something like /home/username/myperlmodules so that they will be installed there.
This will put a configuration file called MyConfig.pm in your home directory at /home/username/.cpan/CPAN.
To install modules, type cpan at the command line and it will bring up the cpan> prompt.
Now you can type install WWW::Curl for example to install the curl module.
Use force install WWW::Curl if you really want to install the module while ignoring errors ... etc. I've done this many times without problems, but I'm sure there could have been.