![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Comparing Two Numbersby Ratazong (Monsignor) |
on Jan 05, 2021 at 11:07 UTC ( #11126364=note: print w/replies, xml ) | Need Help?? |
Hello abs52 You could check if your two version strings both contain two dots - and append a ".0" if not (as suggested by choroba). And then use the possibly modified versions for comparision, not the original ones. HTH, Rata
In Section
Seekers of Perl Wisdom
|
|