On Tue, Dec 15, 2009 at 09:05:05AM -0500, David Golden wrote:

> The important part is that prompt() won't prompt and will just use the
> default if $ENV{PERL_MM_USE_DEFAULT}  is true or if STDIN is empty.
> Smoke testers generally set the PERL_MM_USE_DEFAULT to true.

The other important part is that prompt() knows about buffering, and so
if PERL_MM_USE_DEFAULT is *not* set, then there's a much better chance
that a real user who is, eg, piping CPAN.pm's output through another
programme (such as tee) will actually see what questions you're asking
him.

If you just print to STDOUT and read directly from STDIN, users will
sometimes not see the questions until after they've answered them.  Or
more likely, they'll think your Makefile.PL crashed.

-- 
David Cantrell | Minister for Arbitrary Justice

You may now start misinterpreting what I just
wrote, and attacking that misinterpretation.

Reply via email to