NAME
Term::Prompt - Perl extension for asking questions at the terminal
SYNOPSIS
use Term::Prompt;
my $prompt = new Term::Prompt;
my $answer = $prompt->menu(
foobar => ["Go the FooBar Way!", 'f'],
barfoo => ["Or rather choose BarFoo!", 'b'],
test => ["Or test the script out.", 't'],
number => ["Choose this one if you only want to use numbers!", '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
);
my $same_answer = $prompt->lastval;
my $smallquestion = $prompt->question("What's your name? ");
DESCRIPTION
Term::Prompt is an extension that eases the task of programming user interactivity. It helps you to get information from users, and ask what they really want. It uses basic print commands, and has no dependancies.
EXPORT
None by default.
AUTHOR
Sjors Gielen, <sjorsgielen@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Sjors Gielen
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.