Hi,
I'm having a problem using the detach method in threads. I'm using ActiveState PERL 5.8.6 build 811 on a windows XP platform.
Running an example out of the threads tutorial, I always get an error:
use threads;
$thr = threads->new(\&sub1);
$thr->detach;
sub sub1 {
$a = 0;
while (1) {
$a++;
print"\$a is $a\n";
sleep 1;
}
}
A thread exited while 2 threads were running.