Debian Codegraph @

README

raw
1 IO::Prompter version 0.005004
2
3 Prompt for, read, vet, chomp, and encapsulate input.
4 Like so:
5
6 use IO::Prompter;
7
8 while (prompt -num 'Enter a number') {
9 say "You entered: $_";
10 }
11
12 my $passwd
13 = prompt 'Enter your password', -echo=>'*';
14
15 my $selection
16 = prompt 'Choose wisely...', -menu => {
17 wealth => [ 'moderate', 'vast', 'incalculable' ],
18 health => [ 'hale', 'hearty', 'rude' ],
19 wisdom => [ 'cosmic', 'folk' ],
20 }, '>';
21
22
23 INSTALLATION
24
25 To install this module, run the following commands:
26
27 perl Makefile.PL
28 make
29 make test
30 make install
31
32 Alternatively, to install with Module::Build, you can use the following commands:
33
34 perl Build.PL
35 ./Build
36 ./Build test
37 ./Build install
38
39
40 DEPENDENCIES
41
42 Requires Contextual::Return.
43 Works much better if Term::ReadKey is installed.
44
45
46 COPYRIGHT AND LICENCE
47
48 Copyright (C) 2009, Damian Conway
49
50 This library is free software; you can redistribute it and/or modify
51 it under the same terms as Perl itself.