Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

The interactive shell to do the local cpan configuration

by zli034 (Monk)
on Sep 02, 2007 at 20:03 UTC ( [id://636628]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://636628]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found