in reply to Comparing Two Numbers
print version->parse($installed)->numify, '<=>', version->parse($wante +d)->numify, "\n"; # Output: 450.570<=>450.080082
Use 450.57.0 to get what you expect. Comparing dotted versions with different number of elements is tricky.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Comparing Two Numbers
by abs52 (Novice) on Jan 05, 2021 at 10:03 UTC | |
by choroba (Cardinal) on Jan 05, 2021 at 10:07 UTC | |
by abs52 (Novice) on Jan 05, 2021 at 10:15 UTC | |
by Ratazong (Monsignor) on Jan 05, 2021 at 11:07 UTC |