Skip Menu |

This queue is for tickets about the Perl-Version CPAN distribution.

Report information
The Basics
Id: 119447
Status: open
Priority: 0/
Queue: Perl-Version

Owner: Nobody in particular
Requestors: VDB [...]

Bug Information
Severity: (no value)
Broken in: 1.013
Fixed in: (no value)

Subject: Version comparison does not match version module behavior.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-7039-1482622468-1853.0-0-0 [...]>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 860
Download (untitled) / with headers
text/plain 860b
Consider test program: #!/usr/bin/perl use strict; use warnings; use version 0.77; use Perl::Version; use Test::More; my $v1 = 'v0.10.1_01'; my $v2 = 'v0.10.2'; is( Perl::Version->new( $v1 ) <=> $v2, version->parse( $v1 ) <=> $v2 ); done_testing; exit( 0 ); With version 0.9912, it passes: ok 1 1..1 With version 0.9913 (an later), it fails: not ok 1 # Failed test at test.t line 12. # got: '-1' # expected: '1' 1..1 # Looks like you failed 1 test of 1. version 0.9912 interprets 'v0.10.1_01' as 'v0.10.1.1' (+alpha flag), but version 0.9913 interprets it is 'v0.10.101' (+alpha flag). The change in version module is intentional (I guess it is because Perl interprets v-string v0.10.1_01 as v0.10.101) so it unlikely to be reverted. That means Perl::Version should adopt new version behavior to be compatible with version module.
MIME-Version: 1.0
X-Spam-Status: No, score=-6.007 tagged_above=-99.9 required=10 tests=[AWL=-0.008, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FROM_OUR_RT=-4, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
In-Reply-To: <rt-4.0.18-7039-1482622469-715.119447-4-0 [...]>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-119447 [...]> <rt-4.0.18-7039-1482622469-715.119447-4-0 [...]>
X-Virus-Scanned: Debian amavisd-new at
X-Received: by with SMTP id h138mr6871294vkf.48.1482630560229; Sat, 24 Dec 2016 17:49:20 -0800 (PST)
Message-ID: <CAPk17=4Y66feyH4j9uCYjD_Q1dR35yPdihqFsinCHbb5SXkh2Q [...]>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.007
Authentication-Results: (amavisd-new); dkim=pass header.i= [...]
Received: from localhost (localhost []) by (Postfix) with ESMTP id 77E72240260 for <cpan-bug+Perl-Version [...]>; Sat, 24 Dec 2016 20:49:46 -0500 (EST)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 2tbkINOR3wHw for <cpan-bug+Perl-Version [...]>; Sat, 24 Dec 2016 20:49:30 -0500 (EST)
Received: from ( []) by (Postfix) with SMTP id B5D50240137 for <bug-Perl-Version [...]>; Sat, 24 Dec 2016 20:49:29 -0500 (EST)
Received: (qmail 25147 invoked by alias); 25 Dec 2016 01:49:29 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Sat, 24 Dec 2016 17:49:24 -0800
Received: by with SMTP id p9so190587676vkd.3 for <bug-Perl-Version [...]>; Sat, 24 Dec 2016 17:49:24 -0800 (PST)
Received: by with HTTP; Sat, 24 Dec 2016 17:48:39 -0800 (PST)
Delivered-To: cpan-bug+Perl-Version [...]
Subject: Re: [ #119447] Version comparison does not match version module behavior.
Return-Path: <brian.d.foy [...]>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=jSx13EsZNVwn576pOr9vxLq6fhPluryxDtk9kZbavj4=; b=s9n5aM3Y+OWKyc58NymebnuiLlbZQZErnaAWqE8mahX+YVVOzgCrQv1R5x1DasoSFh LRzwEbCYHXa/SNkuoIc1ASKNCUyFWxR4R3V4mpJ+IcBSwdl3QskZDQg4XkrxdRIfZHPf RKnug4iKoR8Vb+QJCprUkwu3ns7IlXTC+aHssQgpGCWoMjZaDhddGiLMb5X5RqEwZyiU FhpfTNYSONEudHfLD8/Tkp+u/22LDsp03yXXYMQ38aDzeg1/irNsjN+8Xdfq87IZ2ox0 TVxDqLV6YGH7TK5cUcDq4YADvFWiOwbh0+TTVVRnvxDNjrePYCpkY7vcngxw9OeuS0cC thjw==
X-Original-To: cpan-bug+Perl-Version [...]
X-RT-Mail-Extension: perl-version
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=jSx13EsZNVwn576pOr9vxLq6fhPluryxDtk9kZbavj4=; b=fSOaSu3EfWMfuhyvOxMpcpT1wWpYz1w2mIHY2YP/Strcf8XdLqDApwnOdDnJRJbEQZ 74ob4OTeq2mmlbKcKIMoXAyVSlwzvXHDwsfUXgT3kbBufMLDt8Ar7Npwgu5dlUcdY4Kb 8jvOQQAXX7VU35aMwrZMRUO8azw+VIjS1sQhQzzRsJv/iTKquC1C9wabYE1O8a6oMH59 bl59a+9R+2MVLyHK/XROpTe0GqtFGY7WUFAdFSy8/ZT4Ie1gXrIacDnzAMhTALm/2gRy 8mtH57N/NHLB2HlpeKnxPswYs9oB54j+WTmvdNpzcFg3B4yVbW1nIxfQZslAsiOk8VCn dELw==
Date: Sat, 24 Dec 2016 17:48:39 -0800
To: bug-Perl-Version [...]
X-GM-Message-State: AIkVDXIA/U7pmUkDwd8v2nd3GKEZDM5Mdg7KnFx1oCE1lppCArrpTCdvfG+AyiUnqDfpTZtBEllk/v1mcvR3bw==
From: brian d foy <brian.d.foy [...]>
RT-Message-ID: <rt-4.0.18-3087-1482630587-1768.119447-0-0 [...]>
Content-Length: 224
Download (untitled) / with headers
text/plain 224b
Noted, at it's at Christmas so I don't have time to look at this immediately. And, I think there's some work to do to decide if we should track version. There's a lot of pain there. If someone wants to submit a patch.... :)

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to