Try setting PERL_MM_USE_DEFAULT like so:
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install My::Module'
It should make CPAN answer the default to all prompts.
More Related Contents:
- Can a Perl script install its own CPAN dependencies?
- Failing to install MIME::Base64 using cpan [closed]
- What’s the easiest way to install a missing Perl module?
- How can I install a CPAN module into a local directory?
- How can I install Perl modules without root privileges?
- How can I use a new Perl module without install permissions?
- How can I use CPAN as a non-root user?
- How can I install CPAN modules locally without root access (DynaLoader.pm line 229 error)?
- How do I choose a package name for a custom Perl module that does not collide with builtin or CPAN packages names?
- How can I install a specific version of a set of Perl modules?
- Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)
- How can I find the version of an installed Perl module?
- How can I convert my shell script to Perl? [closed]
- search using perl one liner within a file [closed]
- How to re-direct the contents to a file instead of printing it to terminal
- What is the difference between library files and modules?
- How can I pass command-line arguments to a Perl program?
- How do I efficiently parse a CSV file in Perl?
- OpenSSL DH Key Too Small Error
- @ARGV is empty using ActivePerl in Windows 7
- ImageMagick Command-Line Option Order (and Categories of Command-Line Parameters)
- Perl Dereferencing Syntax
- How to extrace pg_backend_pid from postgresql in shell script and pass it to another process?
- What is the difference between `$this`, `@that`, and `%those` in Perl?
- Why are use warnings; use strict; not default in Perl?
- What is the difference between `read` and `sysread`?
- In Perl, what is the difference between accessing an array element using @a[$i] as opposed to using $a[$i]?
- How do I use symbolic references in Perl?
- In Perl, is it better to use a module than to require a file?
- Why does !1 give me nothing in Perl?