in reply to Activestate 5.8.2 broke my threads :(

I don't have 5.8.2 installed, so cannot repeat your problem, but I want to point out this line, so it does not confuse thread newbies:

#threads->create(\&start_thread, "www.yahoo.com:80")->join; #works, bu +t who cares :)

For anyone wish to handle different sites multi-threaded, this code does not work for you, as it is not really multi-threaded in the way you want. You have to call detach() or simply don't call anything. By calling join(), the loop will halt until the child thread completes and returns.

I am not saying the author of the original post does not understand this, as he might just want to use join() to contrast the detach(), but a better contrast is:

threads->create(\&start_thread, "www.yahoo.com:80");

Replies are listed 'Best First'.
Re: Re: Activestate 5.8.2 broke my threads :(
by Anonymous Monk on Dec 22, 2003 at 15:01 UTC
    PG, I thought I was clear to give in-line COMMENTED EXAMPLE, to SHOW that it is the CONCURRENCY that is broken. I guess writing a comment on the commented line of the join "this works but who cares :)" was confusing to some. Sorry. But do you have a real answer too? Do you need more info? Did you try it on some 5.8.2 to check? Maybe on Windows? Maybe the newbies that you try to teach want to know why one program works just fine on 5.8.0 but blows Perl.exe on 5.8.2?