BEGIN { unless (exists $SIG{USR1}) { print <autoflush(1); async { $W->print("one\ntwo\n\nthree\n\n\nfour\n\n\nfive\nsix\nseven"); $W->close; } my $p; while (defined(my $i = $R->readline($sep[$c]))) { $p .= $i . ":"; } $ex[$c] eq $p or print "not "; print "ok " . (1 + $c) . "\n"; }