Sophie

Sophie

distrib > Mageia > 7 > aarch64 > media > core-release-src > by-pkgid > 495a6b9964255ab3702def650b54dcc9

perl-IO-Prompt-Hooked-0.100.0-7.mga7.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: