ClickHouse/dbms/scripts/geobase_to_regions_hierarchy.pl
2014-09-11 21:46:41 +04:00

12 lines
204 B
Perl
Executable File

#!/usr/bin/perl -w
use strict;
use warnings;
use geobase;
foreach my $key (keys %Region) {
print $key . "\t"
. ($Region{$key}->{parents}[-1] || 0) . "\t"
. ($Region{$key}->{type} || 0) . "\n";
}