----- Forwarded message from Kim Davies <[EMAIL PROTECTED]> -----

From: Kim Davies <[EMAIL PROTECTED]>
Subject: [cctld-tech] Help! Determining the two letter prefix for IDNs
Date: Thu, 31 Oct 2002 06:28:35 +0100

Dear all,

The IESG is in the final stages of finalising the IDN protocols. One part
of this is identifying the final two letter prefix to be used for the
ACE encoded version in domain names.

They would like data from any ccTLDs that can do so on the occurance of
prefixes in their current zones.

Therefore I would encourage ccTLDs to respond with a count of the number of
domains registered that have hyphens in the third and fourth positions,
and the tally of which two letters precede the hyphens.

Below is a simple perl script to do this that will write the results to 
FoundDashDash.txt 

If you could run this on your zones and report back the results to me
or Paul Hoffman <[EMAIL PROTECTED]> as soon as possible. If you have a 
prohibition on those kind of reservations, and thus have none to report, 
that would be useful information too.

If you have any problems with the perl I can assist in processing the 
information for you.

thanks,

kim

--8<-- cut here

#!/usr/bin/perl
@AllZones = glob('AllZones/*'); 
open(FOUND, '>FoundDashDash.txt');
foreach $Zone (@AllZones) { 
  open(IN, $Zone) or die "Could not open $Zone\n"; 
  while(<IN>) { 
    @Parts = split(/\s+/); 
    if($Parts[3] eq 'NS') { 
      if(substr($Parts[0], 2, 2) eq '--') { 
        $Collect{substr($Parts[0], 0, 2)}++; 
      } 
    } 
  } 
}
foreach $Found (sort(keys(%Collect))) { print FOUND "$Found\n"; }

_______________________________________________

----- End forwarded message -----
_______________________________________________
Idnic mailing list
[EMAIL PROTECTED]
http://www.idnic.net.id/cgi-bin/mailman/listinfo/idnic

Kirim email ke