Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Just Another Thread Hacker

by benn (Vicar)
on Oct 09, 2003 at 11:11 UTC ( [id://297876]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Just Another Thread Hacker
in thread Just Another Thread Hacker

Well, if we're golfing...
use threads;use IO'Socket;print$_->join for map threads-> create(sub{$o=IO'Socket'INET->new('perlmonks.org:80');print$o "GET /?node_id=$_[0]\n\n";local$/;<$o>=~/e>(\w+\s)/},$_),9655 ,6352,297065,138903;print$/
A wee bit slower (it grabs the full HTML) and not as prettily formatted, but comes in at 207.

Toodle-pip,
Ben

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://297876]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-19 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found