From 9fcc23141fa6c68e7419a4caf9046d6912491e37 Mon Sep 17 00:00:00 2001 From: Aristotle Pagaltzis Date: Mon, 27 Jul 2015 14:24:21 +0200 Subject: [PATCH] perlvar: discourage $OLD_PERL_VERSION --- pod/perlvar.pod | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pod/perlvar.pod b/pod/perlvar.pod index f825754..342a596 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -464,9 +464,12 @@ version objects) and numeric comparisons can occasionally fail; it's good for string literal version checks and bad for comparing to a variable that hasn't been sanity-checked. -Mnemonic: Is this version of perl in the right bracket? +The C<$OLD_PERL_VERSION> form was added in Perl v5.20.0 for historical +reasons but its use is discouraged. (If your reason to use C<$]> is to +run code on old perls then referring to it as C<$OLD_PERL_VERSION> would +be self-defeating.) -The C<$OLD_PERL_VERSION> form was added in Perl v5.20.0. +Mnemonic: Is this version of perl in the right bracket? =item $SYSTEM_FD_MAX -- 1.8.3.1