Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

(kudra) Re3: To install a module...

by kudra (Vicar)
on Sep 28, 2002 at 10:15 UTC ( #201434=note: print w/replies, xml ) Need Help??

in reply to •Re: (kudra: CPANPLUS) Re: To install a module...
in thread To install a module...

Index files are reloaded if you start to use them and they are older than one day at the time. You can force a reload in the backend object with my $reload = $cp->reload_indices(update_source => 1); (in the shell it's the 'x' command) and it is also possible to change the update time with the private method $conf->_set_source( update => '1000' ). The first method is documented in

By 'no setting for the current CPAN archive', do you mean modifying the URI list based upon where you are? You can set environment variables to do this:

#!/usr/bin/perl BEGIN { $ENV{ftp_proxy} = ''; } use CPANPLUS; shell();
This example comes from the FAQ. "Can I use a local mirror..." might also be appropriate; I'm not completely sure what you're pointing out.

You can mail the bugs list or the general suggestion list, cpanplus-bugs and cpanplus-info respectively, at to report bugs or make suggestions. Other contact information is also found on the sourceforge pages.

Replies are listed 'Best First'.
•Re: (kudra) Re3: To install a module...
by merlyn (Sage) on Sep 28, 2002 at 12:36 UTC
    OK, so the answer to the first one is that CPANPLUS assumes a policy of "reload after one day" instead of's "reload after a user-specifiable period of time". That makes sense, but wasn't documented yet.

    As for the second, no. I'm talking about the CPAN mirror setting, like getting the CPAN from when I'm online, or getting it from my file:///Users/merlyn/CPAN/ when I'm offline. In, that's a simple "o conf urllist unshift BLAH". But there appears to be only a very truncated list of settings in CPANPLUS (so far?), and "current CPAN" is not one of them.

    It has nothing to do with FTP proxy settings.

    -- Randal L. Schwartz, Perl hacker

      True, the reload time is not documented as far as I know. It will be added to the FAQ.

      With the mirror settings, the second FAQ point for a local site is closer to what you want. If the site you list first isn't found, it will fall back to the second site. Which means you could probably get what you want by listing your local archive as the second site on your list.

      But I see you have sent mail to the list, which is probably best for discussing features in detail (I just include this reply for anyone else reading the thread).

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2020-09-20 04:10 GMT
Find Nodes?
    Voting Booth?
    If at first I don’t succeed, I …

    Results (117 votes). Check out past polls.