Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 browsing the Monastery: (5)
As of 2024-03-29 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found