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

•Re: (kudra: CPANPLUS) Re: To install a module...

by merlyn (Sage)
on Sep 27, 2002 at 21:42 UTC ( #201357=note: print w/replies, xml ) Need Help??

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

In my first attempts to use it, I noticed:
  • There appears to be no "setting" for "current CPAN archive", so I'd have to go through the whole interactive setting thing just to point differently depending on whether I was online or at 30,000 feet. Ick.
  • I didn't see that it ever reloaded the index files, and that I'd always have to do that manually.
Both of these will prevent me from using this module on a regular basis.

Is there a person or persons I should write with this feedback?

-- Randal L. Schwartz, Perl hacker

  • Comment on •Re: (kudra: CPANPLUS) Re: To install a module...

Replies are listed 'Best First'.
(kudra) Re3: To install a module...
by kudra (Vicar) on Sep 28, 2002 at 10:15 UTC
    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.

      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://201357]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2020-08-12 04:06 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (64 votes). Check out past polls.