X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/2b719dc0950d9e160458490cb1c69b7cd37d240d..HEAD:/countries.plp diff --git a/countries.plp b/countries.plp index 7297547..efd2f25 100644 --- a/countries.plp +++ b/countries.plp @@ -2,7 +2,7 @@ Html({ title => 'country code cheat sheet', - version => '1.2', + version => '1.3', 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'], @@ -14,10 +14,10 @@ Html({

ISO-3166-1α2 Country codes

<: -my $cc = do 'data/countries.inc.pl'; +my $cc = Data('data/countries'); { - printf ''; + printf '
'; print ''; for my $section (qw{thead}) { print "<$section>
↳"; @@ -46,7 +46,7 @@ my $cc = do 'data/countries.inc.pl'; } $cell = showflag($code) // join(' ', - map { showflag($_) || $_ } split / /, $ref + map { showflag($_) || $_ } split(/ /, $ref) ); } else { @@ -89,3 +89,26 @@ my $cc = do 'data/countries.inc.pl'; +<: exit unless exists $get{v}; :> + +