On Tue, 20 Aug 2002, Michael G Schwern wrote:

> +=head2 Other Handy Functions
> +
> +=over 4
> +
> +=item prompt
> +
> +    my $value = prompt($message);
> +    my $value = prompt($message, $default);
> +
> +The C<prompt()> function provides an easy way to request user input
> +used to write a makefile.  It displays the $message as a prompt for
> +input.  If a $default is provided it will be used as a default.  The
> +function returns the $value selected by the user.
> +
> +If C<prompt()> detects that it is not running in interactively (say,
> +if it is running from a CPAN shell), or if the PERL_MM_USE_DEFAULT
> +environment variable is set to true, the $default will be used without
> +prompting.  This prevents automated processes from blocking on user
> +input.

In my experience, it still prompts under the CPAN shell, but not CPANPLUS.
I've actually come to rely on the former behavior and was surprised that
CPANPLUS didn't work the same way, causing it to be basically imposssible
to do a fresh install of Alzabo via CPANPLUS.  How about a way to _force_
it to prompt or give up if that's really impossible?


-dave

/*==================
www.urth.org
we await the New Sun
==================*/

Reply via email to