kwaping has asked for the wisdom of the Perl Monks concerning the following question:


Update: Resolved the issue myself by doing rm -rf ~/.cpan, since I normally run CPAN as root. I must have run it as my regular user once on accident.

I haven't intentionally changed anything on my system, but I just started getting these error messages when trying to perldoc anything:
Global symbol "%Config" requires explicit package name at /System/Libr +ary/Perl/5.8.1/Pod/Perldoc.pm line 53. Global symbol "%Config" requires explicit package name at /System/Libr +ary/Perl/5.8.1/Pod/Perldoc.pm line 56. Global symbol "%Config" requires explicit package name at /System/Libr +ary/Perl/5.8.1/Pod/Perldoc.pm line 57. Global symbol "%Config" requires explicit package name at /System/Libr +ary/Perl/5.8.1/Pod/Perldoc.pm line 57. BEGIN not safe after errors--compilation aborted at /System/Library/Pe +rl/5.8.1/Pod/Perldoc.pm line 66. Compilation failed in require at /usr/bin/perldoc line 8. BEGIN failed--compilation aborted at /usr/bin/perldoc line 8.

Any troubleshooting tips or leads? I've been checking file and directory permissions in my system libraries but so far nothing looks wrong (all world-readable). I know I haven't edited any code in the modules themselves.

I force-reinstalled Pod::Perldoc but that didn't help.