in reply to Re^2: Can't use CPAN.pm once gpg installed
in thread Can't use CPAN.pm once gpg installed

I've faced a similar issue. The problem with 'sudo cpan' as opposed to, say, 'su - -c cpan' (roughly) is that with sudo your user's environment is still active and CPAN.pm will, by default, use your home directory as its repository and pick up other config files from there.
  • Comment on Re^3: Can't use CPAN.pm once gpg installed

Replies are listed 'Best First'.
Re^4: Can't use CPAN.pm once gpg installed
by Aristotle (Chancellor) on Jan 31, 2006 at 04:02 UTC

    The equivalent switch for sudo is -i.

    Makeshifts last the longest.