Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Just Another Thread Hacker

by benn (Priest)
on Oct 09, 2003 at 11:11 UTC ( #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


Comment on Re: Re: Re: Just Another Thread Hacker
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (22)
As of 2014-10-30 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls