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

when I start cpan from my fedora 10 it gives as follows: #cpan Undefined subroutine &CPAAN::shell called at /usr/bin/cpan line 198. Does anybody know the solution to this?

Replies are listed 'Best First'.
Re: CPAN fails from Fedora 10
by Corion (Patriarch) on Jul 13, 2009 at 07:01 UTC

    Are you sure that this is not a typo?

    Undefined subroutine &CPAAN::shell called at /usr/bin/cpan line 198.

    If you really, really are sure that CPAAN::shell is not a typo, go to line 198 of /usr/bin/cpan and change CPAAN to CPAN. You, or somebody else already manually changed things around on this machine. You shouldn't do that with things in /usr/bin. Also consider installing your own Perl, or using the Fedora package manager (rpm?) to install Perl modules into the Fedora system Perl.

    Also see:

      It was a typo not in the file . The file seems to be intact.It is CPAN. I did not try loading the rpm. Any help is appreciated. I manually installed CPAN.still the result is same. How to uninstall CPAN and start form scratch without loading the entire Fedora 10 ???