in reply to Just can't get threads to work
Adding the following line after you've started your threadsm would prevent the main thread from terminating before the threads have finished and allow your code to work. You can also do away with the sleep as it is just slowing things up.
$_->join for threads->list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Just can't get threads to work
by stellagoddc (Novice) on Apr 20, 2006 at 16:01 UTC |