Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 having an uproarious good time at the Monastery: (4)
As of 2014-12-29 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls