-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bad handling of small fractional numeric versions #30
Comments
version.pm already contains logic to handle that, I suspect that would be the most logical route. |
The problem seems to be a bit more subtle. This is accepted: Since the version # for Try::Tiny is faked, that of course produces a separate warning, but I assume by the time this warning: |
I found that by doing this: |
If a version number is passed in numeric form, C::M::R will use its stringified form for all its processing. This doesn't play well with small fractional versions like
0.000005
, which will be stringified as '5e-06', and thus rejected as invalid. For values that are numeric (possibly checked via looks_like_number or B flags) it should stringify them using sprintf '%f' instead.The text was updated successfully, but these errors were encountered: