Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Selecting the "fastest" server listed in an array

by hacker (Priest)
on Sep 11, 2007 at 00:10 UTC ( [id://638190]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $ua          = LWP::UserAgent->new;
        my $url         = "$mirrors[rand @mirrors]/file.tar.bz2";
    ...
        my $status      = $response->status_line;
    
        if ($status == '200') {... }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-23 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found