-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RT #110074: 5.011 == 5.11 in 1.013 #7
Comments
I added t/99.rt-110074.t for this, and I updated the docs. (UPDATED) I think this is the expected behavior based on how Perl (the project) and CPAN treat semantic version numbers even if there are only two components, which is a bit weird. If this were a general version module for the entire Internet, I would say this is wrong. |
This is not how Perl and CPAN treat version numbers, and why Perl::Version has not been suitable for me to bump version numbers. See https://blogs.perl.org/users/grinnz/2018/04/a-guide-to-versions-in-perl.html - these are treated as decimal (float) versions by Perl. |
Yes, you are right. It pads in groups of three on the other side. But, this is what Perl::Version does, and without a major version bump to break that behavior, this is what it's going to keep doing. I didn't write this stuff, it's a pain to deal with, and I'm not going to rewrite it. There are lots of other broken things too. I don't use this for version bumping either. I have a different tool for that, and I don't bother trying to be slick. I just use the literal string I specify without letting something guess what incrementing some part means. |
From Gabor in #110074 on rt.cpan.org:
Using Perl::Version 1.013 I got that this
returns true.
Is that the expected behavior?
The text was updated successfully, but these errors were encountered: