summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/lib/perl5db/t/rt-124203b
blob: a599621566207ca7a4c69a357a4cbd94a7389173 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
use threads;
print "PID $$\n";
my $x;
sub sub1 {
  print("In the thread\n");
}
sub foo:lvalue {
  my $thr = threads->create(\&sub1);
  $thr->join;
  $x;
}
foo() = "One";
print "Finished $x\n";