Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

dumpcpanurls: current configured CPAN mirror URLs

by Intrepid (Deacon)
on Aug 08, 2003 at 22:09 UTC ( [id://282325]=CUFP: print w/replies, xml ) Need Help??

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'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-18 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found