tags:

views:

103

answers:

2

I currently have this on a script:

 CPAN::Shell->rematein("notest", "install", "$m");

Where $m is a module name the script installs. However, I want the module to install without prompting the user whether additional dependencies should be installed (optional deps or not), how can I do that?

+1  A: 

Found an answer here.

Set PERL_MM_USE_DEFAULT=1 in your environment.

mobrule
Although this is not an idiot-proof solution: http://www.perlmonks.org/?node_id=548581
mobrule
+4  A: 

What is your setting for prerequisites_policy in CPAN::Config? That should be follow and not ask.

brian d foy