latin: palm graffiti font placeholder
[sheet.git] / perl.plp
index 0476a9e4ae14854e56aa90fce0996f40f29bf4bb..131291e0ffdf995521700ecb4a3fded5f7a7a053 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -14,20 +14,24 @@ Html({
 :>
 <h1>Perl release summary</h1>
 
-<p>The most significant features introduced for recent versions of the Perl scripting language.
-Depending on desired compatibility you'll want to support a minimum of
-<span title="on dinosaur platforms such as Solaris 10, AIX 5.2, RHEL 3, SLES 8">v5.8</span> or
-<span title="on stable servers such as Debian wheezy, Ubuntu 12.04, CentOS 7">v5.14</span>.
-</p>
-
+<p>The most significant features introduced for recent versions of the Perl
+scripting language.
 <:
 my $info = do 'perl.inc.pl' or die $@ // $!;
+
+say "Depending on desired compatibility you'll want to support a minimum of";
+say join(' or ', map {
+       sprintf '<span title="on %s">v%vd</span>', $info->{$_}->{distrosum}, $_
+} v5.8, v5.20), '.';
+say '</p>';
+
 for my $vernum (reverse sort keys %{$info}) {
        my $verrow = $info->{$vernum};
        defined $verrow->{unstable} and next unless exists $get{v};
 
        say '<div class="section">';
-       say sprintf '<h2>%vd <small>%s</small></h2><dl>', $vernum, $verrow->{release};
+       say sprintf '<h2>%vd <small>%s</small></h2>', $vernum, $verrow->{release};
+       say '<dl>';
        for (@{ $verrow->{new} }) {
                my ($topic, $desc, $attr) = @{$_};
                if ($attr) {
@@ -47,8 +51,9 @@ for my $vernum (reverse sort keys %{$info}) {
                                        $attr->{experimental}, $title;
                        }
                        if ($attr->{feature}) {
-                               $title = sprintf('<span title="%s">feature</span>', $attr->{feature})
-                                       . (defined $title && ", $title");
+                               my $prefix = sprintf '<span title="%s">feature</span>',
+                                       $attr->{feature};
+                               $title = join ', ', $prefix, $title // ();
                        }
                        $desc .= sprintf ' <em class="ex">(%s)</em>', $title;
                }