How can I tell CPAN::Shell to install all dependencies for a module?
I currently have this on a script:
CPAN::Shell->rematein("notest", "install", "$m");
Where $m is a module name the script ins开发者_高级运维talls. 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?
What is your setting for prerequisites_policy in CPAN::Config? That should be follow and not ask.
Found an answer here.
Set PERL_MM_USE_DEFAULT=1 in your environment.
加载中,请稍侯......
精彩评论