1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Source: libshell-posix-select-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: gregor herrmann <gregoa@debian.org>
Section: perl
Testsuite: autopkgtest-pkg-perl
Priority: optional
Build-Depends: debhelper (>= 9)
Build-Depends-Indep: perl
Standards-Version: 4.1.1
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libshell-posix-select-perl.git
Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libshell-posix-select-perl.git
Homepage: https://metacpan.org/release/Shell-POSIX-Select
Package: libshell-posix-select-perl
Architecture: all
Depends: ${misc:Depends},
${perl:Depends}
Description: POSIX Shell's "select" loop for Perl
Shell::POSIX::Select implements the select loop of the "POSIX" shells (Bash,
Korn, and derivatives) for Perl. That loop is unique in two ways: it's by far
the friendliest feature of any UNIX shell, and it's the only UNIX shell loop
that's missing from the Perl language. Until now!
.
What's so great about this loop? It automates the generation of a numbered
menu of choices, prompts for a choice, proofreads that choice and complains if
it's invalid (at least in this enhanced implementation), and executes a
code-block with a variable set to the chosen value. That saves a lot of coding
for interactive programs -- especially if the menu consists of many values!
.
The benefit of bringing this loop to Perl is that it obviates the need for
future programmers to reinvent the Choose-From-A-Menu wheel.
|