Are you looking for ExtUtils::MakeMaker::prompt ?
Other useful features
hints
my $value = prompt($message); my $value = prompt($message, $default);
The prompt () function provides an easy way to request user input used to write a makefile. It displays $ message as a prompt for input. If set to $ default, it will be used by default. The function returns the value of $ selected by the user.
If prompt () detects that it is not running interactively and there is nothing in STDIN, or if the environment variable PERL_MM_USE_DEFAULT is set to true, the value $ default will be used without a request. This prevents blocking of automatic processes during user input.
If $ default is not set, an empty string will be used instead.
socket puppet
source share