in reply to Re: how is the CPAN_OPTS environment variable supposed to work?
in thread how is the CPAN_OPTS environment variable supposed to work?

cpanm lets you set this up with the environment variable PERL_CPANM_OPT=-n, confirmed working.

Replies are listed 'Best First'.
Re^3: how is the CPAN_OPTS environment variable supposed to work?
by grobber (Novice) on Jan 03, 2020 at 20:36 UTC
    Thanks!

    The discussion on github has since extended to track down the actual issue in the cpan source code: it pushes the contents of CPAN_OPTS onto the argument array instead of unshifting. We'll see if the devs end up making that small change to fix this.

      cpanm is faster and lighter on resources, perhaps worth considering anyway, depending on your goal.