5 my %cc; # map of country code to info array
8 /^#/ and next; # skip comments
9 my ($iso, $name, $cont) = (split /\t/)[0, 4, 8];
10 my $class = "c-\L$cont";
11 $cc{ lc $iso } = [ $name, $class ];
14 say "# automatically generated by $0";
16 $Data::Dump::INDENT = '';
23 mkcountries-geonames - Create Perl include of country info from GeoNames data
27 curl http://download.geonames.org/export/dump/countryInfo.txt |
28 tools/mkcountryinfo > countries.inc.pl