saintmike has asked for the wisdom of the Perl Monks concerning the following question:

Esteemed monks,

has anybody ever worked on a solution to have the CPAN shell ignore prompts for interactive user input ("Do you want to run tests against your local mysql database (y/n)?" and just simulate a disgruntled user hammering on the return key, accepting all default just to get it over with?

I presume it could be done via Expect, and I seem to remember that someone once told me CPANPLUS did that, but I can't find it now.

  • Comment on Hammering on Return key during CPAN install

Replies are listed 'Best First'.
Re: Hammering on Return key during CPAN install
by PodMaster (Abbot) on Oct 28, 2004 at 07:09 UTC
    I presume it could be done via Expect, ...
    No. See the documentation for prompt in ExtUtils::MakeMaker. All CPAN authors should use a prompt function compatible with MakeMaker.

    update: Yes it could be done using Expect but no, you don't want to do that.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.