Subject: | pod lint against podchecker in bleadperl |
patch for pod lint found using podchecker in bleadperl.
Subject: | termui.podlint.patch |
diff -urN temp/Term-UI-0.24/lib/Term/UI.pm Term-UI-0.24/lib/Term/UI.pm
--- temp/Term-UI-0.24/lib/Term/UI.pm 2011-01-12 13:15:26.000000000 +0000
+++ Term-UI-0.24/lib/Term/UI.pm 2011-01-23 13:29:24.000000000 +0000
@@ -483,7 +483,7 @@
### 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?
@@ -496,7 +496,7 @@
$reply = $term->get_reply(
prompt => 'Your favourite colour?',
choices => [qw|red green blue|] );
-
+
which would look like:
1> red
@@ -504,7 +504,7 @@
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>
@@ -559,7 +559,7 @@
$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