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")
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: [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>
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, 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


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.