Skip Menu |

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

Report information
The Basics
Id: 42181
Status: resolved
Priority: 0/
Queue: Perl-Version

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

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



Subject: Implement increment($negactive_index)
It would be nice if the increment method would support negative numbers as argument, just like negative subscripts in perl arrays. The very common (I think) use of Perl::Version $version->increment($version->components-1) could then be written $version->increment(-1) (and one has to remember a method less). I can provide a patch for this, if you accept this. Regards, Slaven
Done, released as 1.009 - thanks :)