Bug#639829: ITP: libio-prompter-perl -- Perl module to prompt for input, read it, clean it, return it
Owner: Salvatore Bonaccorso <email@example.com>
* Package name : libio-prompter-perl
Version : 0.001001
Upstream Author : Damian Conway <DCONWAY@CPAN.org>
* URL : http://search.cpan.org/dist/IO-Prompter/
* License : Artistic or GPL-1+
Programming Lang: Perl
Description : Perl module to prompt for input, read it, clean it, return it
IO::Prompter exports a single subroutine, prompt, that prints a prompt (but
only if the program's selected input and output streams are connected to a
terminal), then reads some input, then chomps it, and finally returns an
object representing that text.
The prompt() subroutine expects zero-or-more arguments.
Any argument that starts with a hyphen (-) is treated as a named option (many
of which require an associated value, that may be passed as the next
argument). See "Summary of options" and "Options reference" for details of
the available options.
Any other argument that is a string is treated as (part of) the prompt to be
displayed. All such arguments are concatenated together before the prompt is
issued. If no prompt string is provided, the string '> ' is used instead.