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.