Add the original source packages to maemo, source lenny
[dh-make-perl] / dev / i386 / libtest-harness-perl / libtest-harness-perl-3.12 / t / sample-tests / out_err_mix
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";