Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Selecting the "fastest" server listed in an array

by hacker (Priest)
on Sep 11, 2007 at 00:10 UTC ( #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
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? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2020-08-14 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (76 votes). Check out past polls.

    Notices?