Version::Compare gets it right (right for what you are expecting):
perl -MVersion::Compare -E 'say Version::Compare::version_compare("450 +.80.82","450.57")' 1
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 reply to Re: Comparing Two Numbers
by davido
in thread Comparing Two Numbers
by abs52
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |