Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to install module with CPANPLUS without prompting?

by xdg (Monsignor)
on Aug 31, 2009 at 05:04 UTC ( #792283=note: print w/ replies, xml ) Need Help??


in reply to How to install module with CPANPLUS without prompting?

I don't want to be prompted, but how?

It won't always work, but in most cases, you can set the PERL_MM_USE_DEFAULT environment variable and modules that use ExtUtils::MakeMaker's prompt function won't prompt and will use the default instead. So on *nix:

$ PERL_MM_USE_DEFAULT=1 cpanp i Template

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.


Comment on Re: How to install module with CPANPLUS without prompting?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://792283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-08-30 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls