On Thu, Sep 18, 2008 at 3:50 PM, Tina Müller <[EMAIL PROTECTED]> wrote:
> Hi Brian,
>
> On Wed, 17 Sep 2008, brian d foy wrote:
>
>> Also, since you want the feature, you have to be a tester. :)
>
> of course =)

I'm moving this over to [email protected] so anyone can read the
thread and it shows up in google, etc.

> Andreas showed me today how to convince CPAN::Shell to use a different
> directory. You call
> perl -I ~/.mycpan -MCPAN/MyConfig.pm -MCPAN -e shell
> (after creating an almost empty ~/.mycpan/CPAN/MyConfig.pm).

This is basically what the new -j switch to cpan does, although it
doesn't try to figure out if the configuration you load is valid yet.

In the git repo (http://github.com/briandfoy/cpan-script/tree/app) I'm
currently working in the app branch because I'm moving it to the
App::Cpan set-up and I'm working on the test suite. The script mostly
works as far as I can tell because I've been using it even while it is
in development.

Try this (after make, etc) in the dev dir:

# dump the current config
$ perl -Mblib script/cpan -J > MyConf.pm

# change then load the current config
# it should dump you into the shell, or you can give it some other command
$ perl -Mblib script/cpan -j MyConf.pm

# load and dump, to see if it all worked.
$ perl -Mblib script/cpan -j MyConf.pm -J

-- 
brian d foy <[EMAIL PROTECTED]>
http://www.pair.com/~comdog/

Reply via email to