One Hat Cyber Team
Your IP :
216.73.216.135
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
backup
/
oldserver
/
2
/
bin
/
View File Name :
cpan-mirrors
#!/usr/bin/perl use strict; use warnings; use CPAN::Mirrors; use Data::Dumper; my $mirrored_by_file = '/Users/brian/.cpan/sources/MIRRORED.BY'; my $mirrors = CPAN::Mirrors->new( $mirrored_by_file ); my $seen = {}; my $n = 5; my $best_continent = $mirrors->find_best_continents( n => $n, seen => $seen, verbose => 1 ); print "Best continent is $best_continent\n"; my @mirrors = $mirrors->get_mirrors_by_continents( $best_continent ); my $callback = sub { my( $m ) = @_; printf "%s = %s ms\n", $m->hostname, 1000 * $m->rtt }; my @sorted_mirrors = $mirrors->get_mirrors_timings( \@mirrors, $seen, $callback ); print "Best mirrors are ", join ' ', map( $_->hostname, @sorted_mirrors[0..$n-1] ), "\n"; print "Best urls are\n\t", join( "\n\t", map( $_->http, @sorted_mirrors[0..$n-1] ) ), "\n";