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