summaryrefslogtreecommitdiff
path: root/systems/texlive/tlnet/tlpkg/tlperl/lib/version.pod
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-04-04 03:14:42 +0000
committerNorbert Preining <norbert@preining.info>2022-04-04 03:14:42 +0000
commit7548e4d37c2aaefd32fe0a9bcd83f8e71326dde1 (patch)
treed335b608e63e9b3c37d7ba0e567c63e77250e171 /systems/texlive/tlnet/tlpkg/tlperl/lib/version.pod
parent506de1e2d3515161cdbc7018b4ccc9e49d7f86e8 (diff)
CTAN sync 202204040314
Diffstat (limited to 'systems/texlive/tlnet/tlpkg/tlperl/lib/version.pod')
-rw-r--r--systems/texlive/tlnet/tlpkg/tlperl/lib/version.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/systems/texlive/tlnet/tlpkg/tlperl/lib/version.pod b/systems/texlive/tlnet/tlpkg/tlperl/lib/version.pod
index 9f3b27d0f4..274868508e 100644
--- a/systems/texlive/tlnet/tlpkg/tlperl/lib/version.pod
+++ b/systems/texlive/tlnet/tlpkg/tlperl/lib/version.pod
@@ -224,11 +224,11 @@ term will be converted to a version object using C<parse()>. This may give
surprising results:
$v1 = version->parse("v0.95.0");
- $bool = $v1 < 0.96; # FALSE since 0.96 is v0.960.0
+ $bool = $v1 < 0.94; # TRUE since 0.94 is v0.940.0
Always comparing to a version object will help avoid surprises:
- $bool = $v1 < version->parse("v0.96.0"); # TRUE
+ $bool = $v1 < version->parse("v0.94.0"); # FALSE
Note that "alpha" version objects (where the version string contains
a trailing underscore segment) compare as less than the equivalent