Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 44207a861c38411dbba31ebc5b3cc0f6

perl-IO-Prompt-Hooked-0.80.0-2.mga3.src.rpm

Description:

IO::Prompt::Tiny is a nice module to use for basic prompting. It properly
detects interactive sessions, and since it's based on the 'prompt()'
routine from the ExtUtils::MakeMaker manpage, it's highly portable.

But the IO::Prompt::Tiny manpage is intentionally minimal. Often one begins
wrapping it in logic to validate input, retry on invalid, limit number of
attempts, and alert the user to invalid input. the IO::Prompt::Hooked
manpage adds simple validation, attempt limiting, and error handling to
IO::Prompt::Tiny's minimalism. It does this by allowing you to supply
simple Regexp objects for validation, or subroutine callbacks if you need
finer control.

"But we already have the IO::Prompt manpage for non-trivial needs.", you
might be thinking. And you're right. But have you read its POD? It's far
from being simple, and is not as portable as this module. the
IO::Prompt::Hooked manpage aims to provide the portability of IO::Tiny, and
easy to use hooks for input validation.

Generated packages:

Other version of this rpm: