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

Re: programming

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

in reply to 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 take care of it.

From the docs:

Default values defined in the CPAN/ file can be overridden in a user specific file: CPAN/ Such a file is best placed in $HOME/.cpan/CPAN/, 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.


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: 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[], 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://808642]
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
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (105 votes). Check out past polls.