From 76d34d4bd4b31ebbe6847e5b31d2d4b699e75e38 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 22 Mar 2018 01:36:21 +0100 Subject: [PATCH] perl: compatibility recommendations in version data --- perl.inc.pl | 2 ++ perl.plp | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/perl.inc.pl b/perl.inc.pl index d81743d..8811bab 100644 --- 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) }, + distrosum => "dinosaur platforms such as Solaris 10, AIX 5.2, RHEL 3, SLES 8", unicode => '3.2.0', }, @@ -124,6 +125,7 @@ use utf8; debian => 'wheezy', ubuntu => '12.04', }, + distrosum => "stable servers such as Debian wheezy, Ubuntu 12.04, CentOS 7", unicode => '6.0+#8', }, diff --git a/perl.plp b/perl.plp index 4e6222d..8735f5f 100644 --- a/perl.plp +++ b/perl.plp @@ -16,13 +16,15 @@ Html({

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 -v5.8 or -v5.14. -

- <: 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 'v%vd', $info->{$_}->{distrosum}, $_ +} v5.8, v5.14), '.'; +say '

'; + for my $vernum (reverse sort keys %{$info}) { my $verrow = $info->{$vernum}; defined $verrow->{unstable} and next unless exists $get{v}; -- 2.30.0