Pcore::Util::Term
Prompting for user input and returns received value.
my $res = Pcore::Util::Prompt::prompt($query, \@answers, %options);
OPTIONS
default - default value, returned if enter pressed with no input;
confirm - if true, user need to confirm input with enter;
Blocking wait for any key pressed.
Pcore::Util::Prompt::pause([$message], %options);
timeout - timeout in seconds;
To install Pcore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore
CPAN shell
perl -MCPAN -e shell install Pcore
For more information on module installation, please visit the detailed CPAN module installation guide.