You're missing the $thread->join right after the for statement. That's mandatory otherwise the program exit without waiting threads to finish.
In this case you're creating one thread + one proc for each wget session. One approach I'd try is to use Coro::LWP or AnyEvent::HTTP for non-blocking I/O, that should scale up better than the threaded approach
In reply to Re: Perl threads to open 200 http connections
by bluescreen
in thread Perl threads to open 200 http connections
by robrt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |