git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
index: publish altgr overview page instead of macos variant
[sheet.git]
/
perl.plp
diff --git
a/perl.plp
b/perl.plp
index 49694fc67abbb87d34d4b223f1f27111976c00f2..89b906e82b503298e009f058e67984758d9313ed 100644
(file)
--- a/
perl.plp
+++ b/
perl.plp
@@
-2,7
+2,7
@@
Html({
title => 'perl version cheat sheet',
Html({
title => 'perl version cheat sheet',
- version => '1.
4
',
+ version => '1.
5
',
keywords => [qw'
perl version feature features comparison
sheet cheat overview summary
keywords => [qw'
perl version feature features comparison
sheet cheat overview summary
@@
-11,6
+11,7
@@
Html({
data => ['perl.inc.pl'],
});
data => ['perl.inc.pl'],
});
+use experimental 'signatures';
:>
<h1>Perl release summary</h1>
:>
<h1>Perl release summary</h1>
@@
-110,9
+111,9
@@
sub featattrs ($attr) {
if (defined $attr->{experimental}) {
$title = 'experimental';
}
if (defined $attr->{experimental}) {
$title = 'experimental';
}
- if ($attr->{dropped}) {
-
next
unless exists $get{v};
- $title = sprintf 'removed in %vd', $
attr->{dropped}
;
+ if (
defined
$attr->{dropped}) {
+
return ''
unless exists $get{v};
+ $title = sprintf 'removed in %vd', $
_ for $attr->{dropped} || ()
;
}
elsif ($attr->{stable}) {
$title .= sprintf ' until %vd', $attr->{stable};
}
elsif ($attr->{stable}) {
$title .= sprintf ' until %vd', $attr->{stable};
@@
-131,7
+132,9
@@
sub featattrs ($attr) {
$title = $title ? sprintf ' <em class="ex">(%s)</em>', $title : '';
if (my $eg = $attr->{eg}) {
$title = $title ? sprintf ' <em class="ex">(%s)</em>', $title : '';
if (my $eg = $attr->{eg}) {
- my $pre = sprintf ' <small>{<code>%s</code>}</small>', Entity($eg);
+ my $pre = Entity($eg);
+ $pre =~ s<\N{ZERO WIDTH SPACE}>{</code><wbr/><code>}g;
+ $pre = " <small>{<code>$pre</code>}</small>";
$title = $pre . $title;
}
return $title;
$title = $pre . $title;
}
return $title;