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

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

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

Subject: Implement increment($negactive_index)
Download (untitled) / with headers
text/plain 394b
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 :)

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

Please report any issues with to