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.
Related Contents:
- 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 can I install a specific version of a set of Perl modules?
- Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)
- Why use strict and warnings?
- Why does modern Perl avoid UTF-8 by default?
- Why are Perl 5’s function prototypes bad?
- What’s the difference between Perl’s backticks, system, and exec?
- Why can’t Perl find my file that is in ClearCase?
- Doesn’t Perl include current directory in @INC by default?
- How do I use boolean variables in Perl?
- When should I use the & to call a Perl subroutine?
- What is the best way to slurp a file into a string in Perl?
- How do I compare two strings in Perl?
- How do I run a Perl script from within a Perl script?
- How can I parse dates and convert time zones in Perl?
- Which one is good practice, a lexical filehandle or a typeglob?
- What’s the difference between a hash and hash reference in Perl?
- What’s the difference between my ($variableName) and my $variableName in Perl?
- How do I read in the contents of a directory in Perl?
- How do I “use” a Perl module in a directory not in @INC?
- How do I tell if a variable has a numeric value in Perl?
- Using perl’s `system`
- Perl flags -pe, -pi, -p, -w, -d, -i, -t?
- Perl 5.20 and the fate of smart matching and given-when
- What’s the best way to open and read a file in Perl?
- What pseudo-operators exist in Perl 5?
- How can I process options using Perl in -n or -p mode?
- What’s the best way to make a deep copy of a data structure in Perl?
- Getting STDOUT, STDERR, and response code from external *nix command in perl
- How can I combine hashes in Perl?
- Perl read line by line
- What is the difference between Perl’s ( or, and ) and ( ||, && ) short-circuit operators?
- What is the difference between new Some::Class and Some::Class->new() in Perl?
- OpenSSL DH Key Too Small Error
- OpenSSL DH Key Too Small Error
- How can I convert the stringified version of array reference to actual array reference in Perl?
- Using Encode::encode with “utf8”
- How can I compile my Perl script so it can be executed on systems without ‘perl’ installed?
- How can I store the result of a system command in a Perl variable?
- Manual installation of a Perl Module
- How do I fix this Perl code so that 1.1 + 2.2 == 3.3?
- How to create recursive hash of hash ? (With unlimited deep)
- What exactly does Perl’s “bless” do?
- Perl build, unit testing, code coverage: A complete working example
- What’s the difference between iterating over a file with foreach or while in Perl?