git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae34f61
)
perl: compatibility recommendations in version data
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 22 Mar 2018 00:36:21 +0000
(
01:36
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 21 Apr 2018 16:29:28 +0000
(18:29 +0200)
perl.inc.pl
patch
|
blob
|
history
perl.plp
patch
|
blob
|
history
diff --git
a/perl.inc.pl
b/perl.inc.pl
index d81743d99577237edbb526fc0e62b82e93ea2c05..8811babf25477e3f4d716baeeea4bb5fdaed40c8 100644
(file)
--- a/
perl.inc.pl
+++ b/
perl.inc.pl
@@
-65,6
+65,7
@@
use utf8;
ubuntu => '4.10',
aix => '5.2', # v5.8.0; v5.8.2 in 5.3 and 6.1 (eol 2017-04-30)
},
ubuntu => '4.10',
aix => '5.2', # v5.8.0; v5.8.2 in 5.3 and 6.1 (eol 2017-04-30)
},
+ distrosum => "dinosaur platforms such as Solaris 10, AIX 5.2, RHEL 3, SLES 8",
unicode => '3.2.0',
},
unicode => '3.2.0',
},
@@
-124,6
+125,7
@@
use utf8;
debian => 'wheezy',
ubuntu => '12.04',
},
debian => 'wheezy',
ubuntu => '12.04',
},
+ distrosum => "stable servers such as Debian wheezy, Ubuntu 12.04, CentOS 7",
unicode => '6.0+#8',
},
unicode => '6.0+#8',
},
diff --git
a/perl.plp
b/perl.plp
index 4e6222ded9f8ced28e05293ade8065a975549213..8735f5f4f42d403fd9214342c192100013d9492e 100644
(file)
--- a/
perl.plp
+++ b/
perl.plp
@@
-16,13
+16,15
@@
Html({
<p>The most significant features introduced for recent versions 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 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>
-
<:
my $info = do 'perl.inc.pl' or die $@ // $!;
<:
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.14), '.';
+say '</p>';
+
for my $vernum (reverse sort keys %{$info}) {
my $verrow = $info->{$vernum};
defined $verrow->{unstable} and next unless exists $get{v};
for my $vernum (reverse sort keys %{$info}) {
my $verrow = $info->{$vernum};
defined $verrow->{unstable} and next unless exists $get{v};