'Term::UI' =>
{
'MAINTAINER' => 'kane',
- 'DISTRIBUTION' => 'BINGOS/Term-UI-0.24.tar.gz',
+ 'DISTRIBUTION' => 'BINGOS/Term-UI-0.26.tar.gz',
'FILES' => q[cpan/Term-UI],
'UPSTREAM' => 'cpan',
},
BEGIN {
use vars qw[$VERSION $AUTOREPLY $VERBOSE $INVALID];
$VERBOSE = 1;
- $VERSION = '0.24';
+ $VERSION = '0.26';
$INVALID = loc('Invalid selection, please try again: ');
}
### ask a user (with an open question) for their favourite colour
$reply = $term->get_reply( prompt => 'Your favourite colour? );
-
+
which would look like:
Your favourite colour?
$reply = $term->get_reply(
prompt => 'Your favourite colour?',
choices => [qw|red green blue|] );
-
+
which would look like:
1> red
3> blue
Your favourite colour?
-
+
C<$reply> will hold one of the choices presented. C<Term::UI> will repose
the question if the user attempts to enter an answer that's not in the
list of choices. The string presented is held in the C<$Term::UI::INVALID>
$reply = $term->get_reply(
prompt => "What is the magic number?",
allow => 42 );
-
+
Unless the user now enters C<42>, the question will be reposed over
and over again. You can use more sophisticated C<allow> handlers (even
subroutines can be used). The C<allow> handler is implemented using
=item *
+C<Term::UI> has been upgraded from version 0.24 to 0.26
+
+=item *
+
C<Unicode::Collate> has been upgraded from version 0.68 to 0.72
This also sees the switch from using the pure-perl version of this