Most likely (and that's just a raw guess), your user has the HTTP proxy environment variables set up, and these get lost when you issue a command to run as the superuser via sudo. Look at whether there is a difference between:
echo $HTTP_PROXY perl -wle 'print $ENV{HTTP_PROXY}' sudo perl -wle 'print $ENV{HTTP_PROXY}'
In reply to Re: Problem installing CPAN modules
by Corion
in thread Problem installing CPAN modules
by daverave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |