☰
Debian Codegraph
@
5.42.3-1
5.42.2-3
5.40.1-8
/
/
cpan
/
Test-Harness
/
t
/
sample-tests
/
out_err_mix
☽
☼
cpan/Test-Harness/t/sample-tests/out_err_mix
code
plain
raw
GPL-1+
or
Artistic
Copyright (c) 2007-2011, Andy Armstrong <
[email protected]
>. All rights reserved.
debian/copyright
1
sub _autoflush {
2
my $flushed = shift;
3
my $old_fh = select $flushed;
4
$| = 1;
5
select $old_fh;
6
}
7
8
_autoflush( \*STDOUT );
9
_autoflush( \*STDERR );
10
11
print STDOUT "one\n";
12
print STDERR "two\n\n";
13
print STDOUT "three\n";