in reply to Just Another Thread Hacker
use threads;use IO::Socket;@thread=map threads ->create(fetch,$_),9655,6352,297065,138903; print$_->join for@thread;print $/;sub fetch{ $sock=IO::Socket::INET->new(qw(PeerAddr perlmonks.org PeerPort 80));print$sock "GET /?node_id=$_[0]&displaytype=xml HTTP/1.0 \n";local$/;(<$sock>=~/title="(\w+\s)/)}
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Just Another Thread Hacker
by davido (Cardinal) on Oct 09, 2003 at 06:17 UTC | |
by benn (Vicar) on Oct 09, 2003 at 11:11 UTC |