From 9016991b8aa254086996b47a921407fe55cdc100 Mon Sep 17 00:00:00 2001 From: David Golden Date: Tue, 18 Feb 2014 20:29:52 -0500 Subject: [PATCH] perlvar.pod: suggest string comparisons for $] --- pod/perlvar.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 4dd4a54..cc0cf04 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -2253,10 +2253,10 @@ The version + patchlevel / 1000 of the Perl interpreter. This variable can be used to determine whether the Perl interpreter executing a script is in the right range of versions: - warn "No checksumming!\n" if $] < 3.019; + warn "No PerlIO!\n" if $] lt '5.008'; The floating point representation can sometimes lead to inaccurate -numeric comparisons. +numeric comparisons, so string comparisons are recommended. See also the documentation of C and C for a convenient way to fail if the running Perl interpreter is too old. -- 2.7.4