13 while ($line = <STDIN>) {
14 print "reader: $line";
16 print "End of input in reader\n";
21 This test starts up a thread to read and echo whatever is typed on
22 the keyboard/stdin, line by line, while the main thread counts down
23 to zero. The test stays running until both the main thread has
24 finished counting down and the I/O thread has seen end-of-file on
28 $r = new Thread \&counter;
38 print "ping $count\n";