Version::Compare(3pm)

Version::Compare3pm

Compare version strings

Usage

    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

version 0.14

Subroutines/methods

max

Return the bigger of the two numerical values

version_compare

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

cmp

See version_compare.

Support

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

    perldoc Version::Compare

You can also look for information at:

•

RT: CPAN's request tracker

<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Version-Compare>

•

AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/Version-Compare>

•

CPAN Ratings

<http://cpanratings.perl.org/d/Version-Compare>

•

Search CPAN

<http://search.cpan.org/dist/Version-Compare/>

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11
  3. 12–13

Author

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

Bugs

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.

Author

Dominik Schulz <[email protected]>

From libversion-compare-perl 0.14-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.