Thread 7 terminated abnormally: read timeout at /usr/lib64/perl5/threads.pm line 101. Thread 15 terminated abnormally: Can't connect to burgundywinecompany.com:80 (connect: timeout) at /usr/lib64/perl5/threads.pm line 101. Thread 19 terminated abnormally: write failed: Connection reset by peer at /usr/lib64/perl5/threads.pm line 101. #### #!/usr/bin/perl use threads; use Thread::Queue; use LWP::UserAgent; my $THREADS=10; # Number of threads #(if you care about them) my $workq = Thread::Queue->new(); # Work to do my @stufftodo = qw(http://www.collectorsarmoury.com/ http://burgundywinecompany.com/ http://beetreeminiatures.com/); $workq->enqueue(@stufftodo); # Queue up some work to do $workq->enqueue("EXIT") for(1..$THREADS); # And tell them when threads->create("Handle_Work") for(1..$THREADS); # Spawn our workers $_->join for threads->list; sub Handle_Work { while(my $todo=$workq->dequeue()) { last if $todo eq 'EXIT'; # All done print "$todo\n"; my $ua = LWP::UserAgent->new; my $RESP = $ua->get($todo); } threads->exit(0); }