Version::Compare(3) User Contributed Perl Documentation Version::Compare(3)

Version::Compare - Compare version strings

version 0.14

use Version::Compare;
if(&Version::Compare::version_compare('2.6.26','2.6.0') == 1) {
    print "2.6.26 is greater than 2.6.0\n";
}

Version::Compare - Comparing version strings

Return the bigger of the two numerical values

Compare two unix-style version strings like 2.6.23.1 and 2.6.33 and return and sort-like return code (1 => LHS bigger, 0 => equal, -1 => RHS bigger)

0.0 < 0.5 < 0.10 < 0.99 < 1 < 1.0~rc1 < 1.0 < 1.0+b1 < 1.0+nmu1 < 1.1 < 2.0

See version_compare.

Dominik Schulz, "<dominik.schulz at gauner.org>"

Please report any bugs or feature requests to "bug-version-compare at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Version-Compare. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

perldoc Version::Compare

You can also look for information at:

Copyright 2012 Dominik Schulz

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

Dominik Schulz <dominik.schulz@gauner.org>

This software is copyright (c) 2012 by Dominik Schulz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2023-07-26 perl v5.38.0