<(common.inc.plp)><: Html({ title => 'country code cheat sheet', version => 'v1.1', 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'], }); :>

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; $ref ||= $code; local $_ = $ref; if (exists $get{show}) { my $img = "data/flag/$ref.png"; $_ = sprintf '%s', $img, $ref if -e $img; } else { $_ = EscapeHTML($short || $name); $name .= " → $ref" if $ref and $ref ne $code; } printf "\n".'%s', $_ ? 'X '.$class : '', EscapeHTML("$code: $name"), $_; } print "\n"; } print "
\n"; } :>
africa europe asia antarctica oceania south america north america reserved org free user-assigned