unicode: reorder playstation icons to match gamepad
[sheet.git] / perl.plp
index 8ebf5e2f522ebc01d6e53a812b9ba910ae252fb5..f4360c5928332f6aecfa5a0d554ddcab163aa33c 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -12,9 +12,9 @@ Html({
 });
 
 :>
-<h1>Perl cheat sheets</h1>
+<h1>Perl release summary</h1>
 
-<p>The most significant features introduced for each version of the Perl scripting language.
+<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 stable/enterprise platforms such as Solaris 10, RHEL 3, SLES 8">v5.8</span> or
 <span title="on up-to-date servers such as Debian wheezy, Ubuntu 12.04, CentOS 7">v5.14</span>.
@@ -24,10 +24,18 @@ Depending on desired compatibility you'll want to support a minimum of
 my $info = do 'perl.inc.pl' or die $@ // $!;
 for my $vernum (reverse sort keys %{$info}) {
        my $verrow = $info->{$vernum};
+       $verrow->{unstable} and next unless exists $get{v};
+
        print '<div class="section">'."\n";
-       printf '<h2>%vd <small style="position:absolute; margin-left:1em">%s</small></h2><dl>'."\n", $vernum, $verrow->{release};
-       printf '<dt>%s<dd>%s', @{$_}, '<br/>' for @{ $verrow->{new} };
-       printf '<dt>Unicode</dt><dd>v%s', $_ for $verrow->{unicode} || ();
+       printf '<h2>%vd <small>%s</small></h2><dl>'."\n", $vernum, $verrow->{release};
+       for (@{ $verrow->{new} }) {
+               if (my $aside = defined $_->[2] && 'experimental') {
+                       $aside .= sprintf ' until %vd', $_->[2] if ref \$_->[2] eq 'VSTRING';
+                       $_->[1] .= qq{ <em class="ex">($aside)</em>};
+               }
+               printf '<dt>%s<dd>%s'."\n", @{$_}, '<br/>'
+       }
+       printf '<dt>Unicode</dt><dd>v%s'."\n", $_ for $verrow->{unicode} || ();
        print "</dl>\n";
        print "</div>\n\n";
 }