Skip Menu |

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

Report information
The Basics
Id: 117309
Status: stalled
Priority: 0/
Queue: Perl-Version

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

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

Subject: nice to have Perl::Version->decrement("subversion")
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-24265-1472507815-408.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: 211
Download (untitled) / with headers
text/plain 211b
would be nice to support decrement as well as increment. sub dec_subversion { my $self=shift; $self->subversion($self->subversion-1); #may need to do error checking and rollover limiting return $self; };
MIME-Version: 1.0
X-Spam-Status: No, score=-6.305 tagged_above=-99.9 required=10 tests=[AWL=0.394, 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_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-24265-1472507816-1365.117309-4-0 [...]>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-117309 [...]> <rt-4.0.18-24265-1472507816-1365.117309-4-0 [...]>
X-Virus-Scanned: Debian amavisd-new at
X-Received: by with SMTP id f128mr130052vkb.139.1472508129978; Mon, 29 Aug 2016 15:02:09 -0700 (PDT)
Message-ID: <CAPk17=7fj8bwwqGGmAe3Jo6aVKvP2oPrwRwfT+Bm4wAuA82=XA [...]>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.305
Authentication-Results: (amavisd-new); dkim=pass header.i= [...]
Received: from localhost (localhost []) by (Postfix) with ESMTP id 30F972403A4 for <cpan-bug+Perl-Version [...]>; Mon, 29 Aug 2016 18:02:19 -0400 (EDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id ePUh97nZfdrD for <cpan-bug+Perl-Version [...]>; Mon, 29 Aug 2016 18:02:18 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id D8B2B240268 for <bug-Perl-Version [...]>; Mon, 29 Aug 2016 18:02:17 -0400 (EDT)
Received: (qmail 10567 invoked by alias); 29 Aug 2016 22:02:17 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Mon, 29 Aug 2016 15:02:14 -0700
Received: by with SMTP id l94so2119767ual.0 for <bug-Perl-Version [...]>; Mon, 29 Aug 2016 15:02:13 -0700 (PDT)
Received: by with HTTP; Mon, 29 Aug 2016 15:01:29 -0700 (PDT)
Delivered-To: cpan-bug+Perl-Version [...]
Subject: Re: [ #117309] nice to have Perl::Version->decrement("subversion")
Return-Path: <brian.d.foy [...]>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=q25uK7owT5AxbfZSqO/UIBMtT8ICLscOERJ1j8XA++w=; b=m++/azRS148vArU85DXKWz50WSn0gAu1XrAlSwBXPJs2CyOIX+MIn5aYtdXVp1JZCx JlbMDGkKqAmlDIWpHzUH8PuzcvKFyKxox0Z1TL14rGlKJcIvvA0WbxPqt4VHa9ZiDi2T AdBGPXVeuytcT7PV1l3R99n4z6GFrY7EyItlxwkCo8U2nvdWWC8jPXT6Vr1YWzT2JzYI ki4fxF7rRDsbCGlW5nCDzfWq+/uI4YPurIvVF6FDJ2pukbmAImf9HSoBrpBycrT5eBf/ ZNj5ViEtKT4IDkhsIFfXvVRfr1zOgmNabKE30HHWQlDt6MJrB6BGxtmDNXoMrgb/3AAO VtYQ==
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=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=q25uK7owT5AxbfZSqO/UIBMtT8ICLscOERJ1j8XA++w=; b=Dr/rdz55UuksO/ukmPK0/X2PawMuy0/tByKue7W7jQ/mARZMCc6dw4tMgou1ThQJAj PXnFNmfd25YSmzj5wjRrpYW68MT1xIM6+bAvAKurInHXO1rL7y53LozMCKIKQt/C3YOC Z5yZG4J+mlwh/S5ixMVklKU8Bg3C8kFZHD/svfUdNIjHONaz+uasHk817xKb4OGgeurW xdHPz7sxXU3T2szAZyqRH+UXNvOYWUrrgrErE/m9QyekcJBzs8xCsFV5Y9VlmUJL5UBm Z272850nX1LQT7X++ujgP8iBSBKpuOiiPJI69jDTZctqGXXneicSsr3sIPfkzFteErMt VrYQ==
Date: Mon, 29 Aug 2016 18:01:29 -0400
To: bug-Perl-Version [...]
X-GM-Message-State: AE9vXwPJ3X06r8uoye8UCm8Qyyu8rurcxIkLyYlYfkk8VPr6v5Ic4AqVVLu0E6uAV6fwN8WB5f2L3K1KRYDMng==
From: brian d foy <brian.d.foy [...]>
RT-Message-ID: <rt-4.0.18-24078-1472508140-1892.117309-0-0 [...]>
Content-Length: 168
Download (untitled) / with headers
text/plain 168b
If you would like this, can you create a patch (and accompanying tests!) for it? I think that if the subversion is 0 and you try to decrement it, it should just fail.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-24078-1472508140-1892.117309-0-0 [...]>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-117309 [...]> <rt-4.0.18-24265-1472507816-1365.117309-4-0 [...]> <CAPk17=7fj8bwwqGGmAe3Jo6aVKvP2oPrwRwfT+Bm4wAuA82=XA [...]> <rt-4.0.18-24078-1472508140-1892.117309-0-0 [...]>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-23363-1472590995-1394.117309-0-0 [...]>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 242
Download (untitled) / with headers
text/plain 242b
On Mon Aug 29 18:02:20 2016, wrote: Show quoted text
> If you would like this, can you create a patch
I ended up parsing the version format with a regular expression. Sorry that I didn't have the time to add on to the empire. mrdvt92

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

Please report any issues with to