Alien::...dVersion(3)
π Alien::Build::Plugin::Prefer::GoodVersion β the "only the good versions, bestie" plugin π
okay so this is a page from the User Contributed Perl Documentation set, and the module we're hyping up is Alien::Build::Plugin::Prefer::GoodVersion. β¨
πΈ NAME πΈ
Alien::Build::Plugin::Prefer::GoodVersion β it's the plugin that filters for known good versions. literally its whole personality. π
β VERSION β
version 2.88 β yes queen, current.
π SYNOPSIS π
use alienfile;
plugin 'Prefer::GoodVersion' => '1.2.3';
that's it. that's the whole vibe. π¦
π DESCRIPTION π
so bestie, this plugin lets you name one or more good versions of a library. and here's the tea: this does not affect a system install at all. not even a little. π
it's the exact opposite of the Prefer::BadVersion plugin β like, they're giving nemesis energy. π
and lowkey important: you need need a Prefer plugin that filters and sorts files first. this one doesn't do that part for you. you can specify the filter in one of three ways:
β¨ as a string β¨
filter any files that match the given version.
use alienfile;
plugin 'Prefer::GoodVersion' => '1.2.3';
β¨ as an array β¨
filter all files that match any of the given versions.
use alienfile;
plugin 'Prefer::GoodVersion' => [ '1.2.3', '1.2.4' ];
β¨ as a code reference β¨
filter any files that return a true value.
use alienfile;
plugin 'Prefer::GoodVersion' => sub {
my($file) = @_;
$file->{version} eq '1.2.3'; # same as the string version above
};
and the plot twist: you can also use this to filter known good versions of a library on just one platform. like, say you know version 1.2.3 is good on windows, but the default logic is fine everywhere else. main character platform-specific energy:
use alienfile;
plugin 'Prefer::GoodVersion' => '1.2.3' if $^O eq 'MSWin32';
π«Ά PROPERTIES π«Ά
filter
filter entries that match the filter. yes, that's the whole property. it does what it says on the tin. π
π CAVEATS π
okay this part matters, don't skip it, i'm being so serious rn
- if you're using the string or array mode, then you need an existing Prefer plugin that sets the version number for each file candidate β like
Alien::Build::Plugin::Prefer::SortVersions. no version number, nothing to match against, and the whole thing just sits there. π - unless you actually want to exclude the latest version from a share install, this plugin isn't really that useful. ngl. π
- and it has no effect on system installs, which may not be obvious at first. like, at all. zero. it's giving "why is nothing happening" but the answer is in the name of the plugin bestie.
π SEE ALSO π
alienfileAlien::BuildAlien::Build::Plugin::Prefer::SortVersions
go read those, iykyk. πβ¨
π AUTHOR π
Author: Graham Ollis <plicease@cpan.org>
Contributors β the whole group chat showed up, we love to see it: π
- 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)
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2011-2022 by Graham Ollis.
it's free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π§
and that's a wrap, bestie π thanks for reading the whole thing, you ate that fr fr
this page ships as perl v5.42.3, dated 2026-09-21, and it came to you from the Alien::...dVersion(3) corner of the perl manual universe β¨
π¦ where this page comes from
- fedora 43: perl-Alien-Build 2.88-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-Alien-Build 2.88-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms