Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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


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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://792283]
[marto]: ah Sun, I sold my Pizzabox in around 2005
[Corion]: I used one at $work as a terminal, but those days are long gone by ;)
[marto]: I have an old IBM infowindow terminal to repurpose, I'll just wire a raspberry piz zero to the cable, providing access and wiFi :P
[marto]: the kids will love it
[Corion]: marto: Hehe ;) I've been toying with the idea of soldering an USB (-C) hub into a keyboard and making it a computer by slotting my phone into that :)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2018-03-21 11:24 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.