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 32
|
Source: libdevel-autoflush-perl
Section: perl
Priority: optional
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Marius Gavrilescu <marius@ieval.ro>
Build-Depends: debhelper-compat (= 12)
Build-Depends-Indep: libio-captureoutput-perl,
perl
Standards-Version: 3.9.5
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libdevel-autoflush-perl
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libdevel-autoflush-perl.git
Homepage: https://metacpan.org/release/Devel-Autoflush
Testsuite: autopkgtest-pkg-perl
Package: libdevel-autoflush-perl
Architecture: all
Depends: ${misc:Depends}, ${perl:Depends}
Multi-Arch: foreign
Description: module for setting autoflush from the command line
Devel::Autoflush is a hack to set autoflush for STDOUT and STDERR from the
command line or from "PERL5OPT" for code that needs it but doesn't have it.
.
This often happens when prompting:
.
# guess.pl
print "Guess a number: ";
$n = <STDIN>;
.
As long as the output is going to a terminal, the prompt is flushed when STDIN
is read. However, if the output is being piped, the print statement will
not automatically be flushed, no prompt will be seen and the program will
silently appear to hang while waiting for input.
|