Alien::Util(3)

✨ NAME ✨

okay bestie, meet Alien::Util - Alien Utilities used at build and runtime. This is the Alien::Util(3) page, hanging out in User Contributed Perl Documentation, and it's giving small but crucial helper module energy. πŸ’–

πŸ¦‹ VERSION πŸ¦‹

version 2.88 β€” slay, that's the one. ✨

πŸ’… SYNOPSIS πŸ’…

okay so the whole import vibe is literally:

use Alien::Util qw( version_cmp );

🌸 DESCRIPTION 🌸

This module contains some functions used by both the Alien::Build build-time and <Alien::Base> run-time for Alien. Lowkey iconic, highkey useful. 🫢

πŸŽ€ version_cmp πŸŽ€

$cmp = version_cmp($x, $y)

This is the comparison method used by "atleast_version" in Alien::Base, "exact_version" in Alien::Base, and "max_version" in Alien::Base. It 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. No cap. 🧚

It should return a number less than, equal to, or greater than zero; similar in behaviour to the <=> and cmp operators.

πŸ’– SEE ALSO πŸ’–

  • Alien::Base
  • alienfile
  • Alien::Build

πŸ‘‘ 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
  • Marcel Telka (mtelka)

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.

Okay, that's the whole page, bestie β€” this cutie comes from perl v5.42.2, dated 2026-09-20, and it's Alien::Util(3) πŸ’–

πŸ“¦ where this page comes from