http://qs321.pair.com?node_id=595201


in reply to Re: CPAN shell - passing params for module installation
in thread CPAN shell - passing params for module installation

o conf makepl_arg --perl_only

Seems to do the job, I was trying something like:

o conf makepl_arg PREFIX=--perl_only

But that didn't work.

Argh! The problem is, I'm already passing something like this to the CPAN shell:

o conf makepl_arg LIB=/path/to/my/distros/perllib

When you set the "--perl_only" paramater, it erases the "LIB=" paramater.

I guess I have to figure out how to pass both configuration thingies.

 

-justin simoni
skazat me

Replies are listed 'Best First'.
Re^3: CPAN shell - passing params for module installation
by Hofmator (Curate) on Jan 18, 2007 at 09:38 UTC
    Shouldn't putting them all on one line work? Like
    o conf makepl_arg LIB=/path/to/my/distros/perllib PREFIX=--perl_only

    Update: Or edit ~/.cpan/CPAN/MyConfig.pm directly and set the things you need from there.

    -- Hofmator

    Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      This works, as long as you put single quotes around the whole makepl_arg value:
      o conf makepl_arg 'LIB=/path/to/my/distros/perllib PREFIX=--perl_only'
      Otherwise, only one of the values is used.

      Shouldn't putting them all on one line work? Like

      o conf makepl_arg LIB=/path/to/my/distros/perllib PREFIX=--perl_only

      Usually, everything but the last configuration gets dropped. Usually.

      Update: Or edit ~/.cpan/CPAN/MyConfig.pm directly and set the things you need from there. I'm changing the configuration while in the CPAN shell to download CPAN modules to a specific location, so I can then add the modules to a distro. Basically.

       

      -justin simoni
      skazat me