X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/bac74b5934f22cc3d0e971d26fe0275f7f5db7b3..b388f9311a7891b227aa3b1f52b1d439418af782:/latin.plp diff --git a/latin.plp b/latin.plp index 9dd8fe9..1fda12c 100644 --- a/latin.plp +++ b/latin.plp @@ -46,14 +46,19 @@ and common chars.

<: +use List::Util qw( pairs ); + my @table = do 'writing-latn.inc.pl'; if ($! or $@) { - printf "

Table data not found: %s.

\n", $@ || $!; + Alert("Table data not found", $@ || $!); } else { say ''; - print ref $_ ne 'ARRAY' ? "
$_\n" : map {/^$_\n"} @$_ - for @table; + for my $row (pairs @table) { + my ($title, $cells) = @{$row}; + say '
', $title; + print /^$_\n" for @{$cells}; + } say "
\n"; }