Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    # "dumpcpanurls" - list the mirrors CPAN.pm is configured to try
    ...
    use CPAN ;
    CPAN::Config->load ;
    print join qq{\n}, @{$CPAN::Config->{'urllist'}} ;
    
  2. or download this
    perl -MCPAN -le "CPAN::Config->load; print join qq(\n)=> @{ \$CPAN::Co
    +nfig->{urllist} }"
    #                                                remove this^ escape f
    +or windows shell
    
  3. or download this
    dumpcpanurls | perl -le 'do{s#^\w+p://([^/]+).*#$1#;print} for(<STDIN>
    +)' \
      | xargs --max-args 1 ping -c 2
    
  4. or download this
    dumpcpanurls | perl -le 'do{s#^\w+p://([^/]+).*#$1#;print} for(<STDIN>
    +)' \
      | xargs netselect -vv
    
  5. or download this
    perl -MCPAN -le \
          'CPAN::Config->load;
           system "netselect", "-vv",
              map { s#^\w+p://([^/]+).*#$1# && $_ || ""}
                          @{ $CPAN::Config->{urllist} } '
    
  6. or download this
         perl -MCPAN -le \
         'CPAN::Config->load;
    ...
             s#^\w+p://([^/]+).*#$1# &&
               push @hosts => $_          }
          system("netselect", "-vv", @hosts) if @hosts'