Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: CPAN.pm programming

by CountZero (Bishop)
on Nov 22, 2009 at 07:46 UTC ( #808642=note: print w/replies, xml ) Need Help??


in reply to CPAN.pm programming

For a custom install of CPAN, best to directly change the list of repositories in the configuration file. You can do that manually, or let the mkmyconfig function of CPAN.pm take care of it.

From the docs:

Default values defined in the CPAN/Config.pm file can be overridden in a user specific file: CPAN/MyConfig.pm. Such a file is best placed in $HOME/.cpan/CPAN/MyConfig.pm, because $HOME/.cpan is added to the search path of the CPAN module before the use() or require() statements. The mkmyconfig command writes this file for you.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: CPAN.pm programming
by bellaire (Hermit) on Nov 22, 2009 at 14:18 UTC
    Yep, and the specific configuration key within that file is urllist, e.g.:
    $CPAN::Config->{urllist} = [q[ftp://some.site.com/cpan/], q[http://cpa +n.elsewhere/]];
    They are checked in the order in which they appear, falling through to later entries if the connection fails or if a particular name can't be found.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://808642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2019-11-21 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (105 votes). Check out past polls.

    Notices?