in reply to Re^2: Installed CPAN Modules in Problematic Location
in thread Installed CPAN Modules in Problematic Location

On a new Centos 7 machine, I found that "yum install cpan" caused some lines to be added to ~root/.bashrc which set the Perl environment variables to use a local installation path, rather than the system-wide path. I removed those lines, removed ~root/perl5 and ~root/.cpan, logged out, and logged back in. Then I ran through the whole cpan setup again, and it worked fine, using the system-wide locations for Perl module installation.
  • Comment on Re^3: Installed CPAN Modules in Problematic Location

Replies are listed 'Best First'.
Re^4: Installed CPAN Modules in Problematic Location
by altaf2301 (Acolyte) on Apr 17, 2017 at 17:44 UTC
    solution worked the first try !!
Re^4: Installed CPAN Modules in Problematic Location
by Anonymous Monk on Dec 22, 2017 at 05:10 UTC
    That's it. The perfect answer that worked like a charm. Thank you!