- or download this
...
print "create thread\n";
...
$run = 0;
$thread->join;
}
- or download this
$thread = threads->new(\<G::scanChange::monitor());
- or download this
sub test{ print 'Hello world' }
...
print \&test()
Hello world
SCALAR(0x1bc2d18)
- or download this
thread failed to start: Not a CODE reference at ...
- or download this
# Do some stuff
$thread->new( ...); # start a thread
...
$thread->join; # Wait for the thread to finish.
# do some other stuff.