R – How to tell CPAN::Shell to install all dependencies for a module

cpanperl

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?

Best Answer

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