On onsdag, juli 24, 2002, at 02:18 , Ray Hilton wrote:
>
> I mean when &foo returns, will it kill &bar. It seems the answer is
> yes.
>
>
sub foo {
threads->create(\&bar)->detach();
}
sub bar {
sleep 2;
}
that thread will sleep 2 seconds then stop running.
Arthur
