<(common.inc.plp)><: Html({ title => 'country code cheat sheet', version => '1.2', description => "Table of ISO-3166-1 country codes with the names of reserved territories.", keywords => [qw'country code cc tld cctld continent territory land table'], stylesheet => [qw'light dark circus mono red'], data => ['countries.inc.pl'], }); :>

ISO-3166-1α2 Country codes

<: my $cc = do 'countries.inc.pl'; { printf ''; print ''; for my $section (qw{thead}) { print "<$section>'; for my $row ('a' .. 'z') { print '
↳"; print '', $_ for 'a' .. 'z'; print "\n"; } print '
', $row; for my $col ('a' .. 'z') { my $code = $row . $col; my $country = $cc->{$code} or do { print $code =~ /^x|^q[m-z]|^aa|^zz/ ? '' : ''; next; }; my ($name, $class, $short, $ref) = @$country; $name .= " → $ref" if $ref; $ref ||= $code; my $cell; if (exists $get{show}) { sub showflag { my ($cc) = @_; my $img = "data/flag/$cc.png"; return -e $img && sprintf '%s', $img, $cc; } $cell = showflag($code) // join(' ', map { showflag($_) || $_ } split / /, $ref ); } else { $cell = EscapeHTML($short || $name); } printf "\n".'%s', $cell ? 'X '.$class : '', EscapeHTML("$code: $name"), $cell; } print "\n"; } print "
\n"; } :>
africa europe asia antarctica oceania south america north america reserved org free user-assigned