2 eval { require Config; import Config };
4 print "1..0 # Skip: no Config\n";
17 print "Randomising to $seed\n";
22 my ($depth, $a, $b, $c) = @_;
24 print "whoami ($depth): $a $b $c\n";
26 whoami($depth - 1, $a, $b, $c) if $depth > 0;
30 my $r = 3 + int(10 * rand);
31 print "start_foo: r is $r\n";
32 whoami($r, "start_foo", "foo1", "foo2");
33 print "start_foo: finished\n";
37 my $r = 3 + int(10 * rand);
38 print "start_bar: r is $r\n";
39 whoami($r, "start_bar", "bar1", "bar2");
40 print "start_bar: finished\n";
43 $foo = new Thread \&start_foo;
44 $bar = new Thread \&start_bar;
45 print "main: exiting\n";