Alien::Util3pm
Alien utilities used at build and runtime
Usage
use Alien::Util qw( version_cmp );
Version
version 2.88
Overview
This module contains some functions used by both the Alien::Build build-time and <Alien::Base> run-time for Alien.
version_cmp
$cmp = version_cmp($x, $y)
Comparison method used by "atleast_version" in Alien::Base, "exact_version" in Alien::Base and "max_version" in Alien::Base. May be useful to implement custom comparisons, or for subclasses to overload to get different version comparison semantics than the default rules, for packages that have some other rules than the pkg-config behaviour.
Should return a number less than, equal to, or greater than zero; similar in behaviour to the "<=>" and "cmp" operators.
Copyright and license
This software is copyright (c) 2011-2022 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Releases
2 releases since Debian 13 (Trixie); the text changed 1 time.