"be consistent" | |
PerlMonks |
Re: Comparing Two Numbersby davido (Cardinal) |
on Jan 05, 2021 at 16:32 UTC ( [id://11126387]=note: print w/replies, xml ) | Need Help?? |
Version::Compare gets it right (right for what you are expecting):
It's about 50 lines of code including whitespace and has no non-core dependencies at runtime. I've found it to be able to handle versions such as PHP versions, WordPress versions, and Linux-typical versions. Dave
In Section
Seekers of Perl Wisdom
|
|