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

When I type this:

C:\> perl -MCPAN -e "shell"

This should fires up the interactive shell. Follow the prompts and I should be able to accept the defaults setting.

It worked good when I was using perl5.6. But now perl5.88, just found out this command makes no difference with :

C:\>cpan

Directly gives cpan> promote.

If I want to change some settings, like unzip or wget, and save them what I can do?

  • Comment on The interactive shell to do the local cpan configuration

Replies are listed 'Best First'.
Re: The interactive shell to do the local cpan configuration
by Corion (Patriarch) on Sep 02, 2007 at 20:18 UTC

    Typing help gives me a help screen. Also, reading CPAN helps.

    The command you seem to be looking for is:

    o conf

    for displaying the configuration,

    o conf gzip

    to set a new value for the gzip option and

    o conf init

    to go through the whole initialization process once again.

      o conf init

      This is what I want

        well I usually change directly the CPAN::MyConfig.pm in the .cpan directory. I also need different ones to manage various distros and proxies. In the end I use aliases/scripts like this:

        % steph@ape (/home/stephan/) % % cat /bin/perl_cpan58[78] #!/usr/bin/bash perl -I ~/.cpan587 -MCPAN::MyConfig -MCPAN "$@" #!/usr/bin/bash PATH=/opt/perl588/bin:/usr/bin perl -I ~/.cpan588 -MCPAN::MyConfig -MCPAN "$@"
        cheers --stephan