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

People
Owner: Nobody in particular
Requestors: MRDVT [...] cpan.org
Cc:
AdminCc:

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



Subject: nice to have Perl::Version->decrement("subversion")
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; };
Subject: Re: [rt.cpan.org #117309] nice to have Perl::Version->decrement("subversion")
Date: Mon, 29 Aug 2016 18:01:29 -0400
To: bug-Perl-Version [...] rt.cpan.org
From: brian d foy <brian.d.foy [...] gmail.com>
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.
On Mon Aug 29 18:02:20 2016, brian.d.foy@gmail.com 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