2 eval { require Config; import Config };
4 print "1..0 # Skip: no Config\n";
17 my $thread = shift @copyargs;
20 while ($arg = shift @copyargs) {
21 my $delay = int(rand(500));
23 print "$thread arg $i is $arg\n";
30 my $thread = $threadargs[0];
33 my(@args) = ($thread) x int(rand(10));
34 print "$thread $count calling printargs @args\n";
35 printargs($thread, @args);
39 new Thread (\&start_thread, "A");
40 new Thread (\&start_thread, "B");
41 new Thread (\&start_thread, "C");
42 new Thread (\&start_thread, "D");
43 new Thread (\&start_thread, "E");
44 new Thread (\&start_thread, "F");
46 print "main: exiting\n";