logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Alien::Util - Alien Utilities used at build and runtime

Author

       Author: Graham Ollis <plicease@cpan.org>

       Contributors:

       Diab Jerius (DJERIUS)

       Roy Storey (KIWIROY)

       Ilya Pavlov

       David Mertens (run4flat)

       Mark Nunberg (mordy, mnunberg)

       Christian Walde (Mithaldu)

       Brian Wightman (MidLifeXis)

       Zaki Mughal (zmughal)

       mohawk (mohawk2, ETJ)

       Vikas N Kumar (vikasnkumar)

       Flavio Poletti (polettix)

       Salvador Fandiño (salva)

       Gianni Ceccarelli (dakkar)

       Pavel Shaydo (zwon, trinitum)

       Kang-min Liu (劉康民, gugod)

       Nicholas Shipp (nshp)

       Juan Julián Merelo Guervós (JJ)

       Joel Berger (JBERGER)

       Petr Písař (ppisar)

       Lance Wicks (LANCEW)

       Ahmad Fatoum (a3f, ATHREEF)

       José Joaquín Atria (JJATRIA)

       Duke Leto (LETO)

       Shoichi Kaji (SKAJI)

       Shawn Laffan (SLAFFAN)

       Paul Evans (leonerd, PEVANS)

       Håkon Hægland (hakonhagland, HAKONH)

       nick nauwelaerts (INPHOBIA)

       Florian Weimer

Description

       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.

Name

       Alien::Util - Alien Utilities used at build and runtime

See Also

       Alien::Base, alienfile, Alien::Build

Synopsis

        use Alien::Util qw( version_cmp );

Version

       version 2.84

See Also