X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/5d0bed0b1a591ba0f12526961a5d857d36df0267..06ac56bcfc1213c305ba9aa3641523d4abcb120f:/perl.plp?ds=inline
diff --git a/perl.plp b/perl.plp
index 1f5cfe7..590cefa 100644
--- a/perl.plp
+++ b/perl.plp
@@ -2,15 +2,17 @@
Html({
title => 'perl version cheat sheet',
- version => '1.4',
+ version => '1.8',
keywords => [qw'
perl version feature features comparison
sheet cheat overview summary
'],
+ image => 'data/camels.jpg',
stylesheet => [qw'light dark red'],
data => ['perl.inc.pl'],
});
+use experimental 'signatures';
:>
Perl release summary
@@ -56,8 +58,9 @@ eval {
$info->{$vcore}{versum} //= "official security patches";
# «We encourage vendors to ship the most recent supported release of Perl
- # at the time of their code freeze» with debian&ubuntu having 5 years LTS
- my $vendoreol = ($now - ONE_YEAR * 5)->strftime('%F');
+ # at the time of their code freeze»
+ # assume debian ships after 1 year, and expires after 5 years LTS
+ my $vendoreol = ($now - ONE_YEAR * 6)->strftime('%F');
my $vdebian = first {
$info->{$_}{release} ge $vendoreol && $info->{$_}{distro}{debian}
} @versions;
@@ -111,7 +114,8 @@ sub featattrs ($attr) {
$title = 'experimental';
}
if (defined $attr->{dropped}) {
- next unless exists $get{v};
+ no warnings 'exiting';
+ next unless exists $get{v}; # skip containing feature
$title = sprintf 'removed in %vd', $_ for $attr->{dropped} || ();
}
elsif ($attr->{stable}) {
@@ -131,7 +135,9 @@ sub featattrs ($attr) {
$title = $title ? sprintf ' (%s)', $title : '';
if (my $eg = $attr->{eg}) {
- my $pre = sprintf ' {%s
}', Entity($eg);
+ my $pre = Entity($eg);
+ $pre =~ s<\N{ZERO WIDTH SPACE}>{}g;
+ $pre = " {$pre
}";
$title = $pre . $title;
}
return $title;