A library for comparing version strings
Compare package versions in all their varied glory.
This module provides the
compare() function which compares two
version strings and returns a negative value, zero, or a positive
value depending on whether the first string represents a version
number lower than, equal to, or higher than the second one, and
key_compare() function which may be used as a key for e.g.
This module does not strive for completeness in the formats of version strings that it supports. Some version strings sorted by its rules are:
See the change log (the
docs/changes.md file in the source
distribution) for the history of
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.