Sha256: 89bdefb57372a1f806545854ea73495b71df339eb3c4fcce244b24c9a3293099

Contents?: true

Size: 326 Bytes

Versions: 25

Compression:

Stored size: 326 Bytes

Contents

#!/usr/bin/perl

use warnings;
use strict;

while (<>) {
	chomp;
	s/#.*$//;
	s/^\s+//; s/\s+$//;
	next if /^$/;

	die "format error: $_" unless
		(my ($a, $b, $c) = /^([a-z0-9.-]+)\s+([a-z0-9-]+)(?:\s+(.+))?$/);

	if ($c) {
		print qq(    { "$a",\t"$b",\t"$c" },\n);
	} else {
		print qq(    { "$a",\t"$b",\tNULL },\n);
	}
}

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
whois-1.2.2 data/make_servers_charset.pl
whois-1.2.1 data/make_servers_charset.pl
whois-1.2.0 data/make_servers_charset.pl
whois-1.1.8 data/make_servers_charset.pl
whois-1.1.7 data/make_servers_charset.pl
whois-1.1.6 data/make_servers_charset.pl
whois-1.1.5 data/make_servers_charset.pl
whois-1.1.4 data/make_servers_charset.pl
whois-1.1.3 data/make_servers_charset.pl
whois-1.1.2 data/make_servers_charset.pl
whois-1.1.1 data/make_servers_charset.pl
whois-1.1.0 data/make_servers_charset.pl
whois-1.0.12 data/make_servers_charset.pl
whois-1.0.11 data/make_servers_charset.pl
whois-1.0.10 data/make_servers_charset.pl
whois-1.0.9 data/make_servers_charset.pl
whois-1.0.8 data/make_servers_charset.pl
whois-1.0.7 data/make_servers_charset.pl
whois-1.0.6 data/make_servers_charset.pl
whois-1.0.5 data/make_servers_charset.pl