PkgConf...nf::Util(3)
β¨ PkgConfig::LibPkgConf::Util β the manual page, bestie edition β¨
okay so real quick before anything else: this is PkgConfig::LibPkgConf::Util(3), part of the User Contributed Perl Documentation situation. it's the lil grab-bag of helper functions that ship with libpkgconf but aren't object-oriented, so they don't get a whole class to themselves. we're just vibing with functions here. π
πΈ NAME πΈ
PkgConfig::LibPkgConf::Util β non-OO functions for PkgConfig::LibPkgConf. literally just a pile of handy utilities, no objects, no drama. π
π¦ SYNOPSIS π¦
use PkgConfig::LibPkgConf::Util qw( argv_split compare_version );
my @args = argv_split('-L/foo -lfoo'); # ('-L/foo', '-lfoo');
my $cmp = compare_version('1.2.3','1.2.4');
look at her go. two imports, two calls, zero object orientation. iconic. β¨
π DESCRIPTION π
so this module is basically the friendship bracelet of the libpkgconf world: it hands you some genuinely useful utility functions that come along with libpkgconf, but they're not object oriented, so they don't get their own class. no constructor, no methods, no $self girlies. just functions, out here being free. π«Ά
π FUNCTIONS π
π argv_split
my @argv = argv_split $args;
splits a string into an argument list. that's it, that's the function. string in, list of args out. slay. π₯
π compare_version
my $cmp = compare_version($version1, $version2);
compares versions using RPM version comparison rules, as described in the LSB. and okay the return values are a little feral so listen up bestie:
- returns
-1if the first version is greater - returns
0if both versions are equal - returns
1if the second version is greater
yes, you read that right. -1 means the first one is bigger. it's giving opposite-day energy, but that's the spec, periodt. π
π§ path_relocate
my $path = path_relocate($path);
relocates a path β and possibly calls realpath() or cygwin_conv_path() on it while it's at it. path in, relocated path out. lowkey doing the most, highkey doing it well. β¨
π path_sep
my $sep = path_sep;
returns the path separator as understood by pkgconf. usually ":" on UNIX and ";" on Windows. no args, no fuss, just the separator your platform fw. π¦
π«Ά SUPPORT π«Ά
need to holler at somebody? come through:
- IRC: #native on irc.perl.org
- Project GitHub tracker: <https://github.com/plicease/PkgConfig-LibPkgConf/issues>
wanna contribute? bestie, open a pull request, we love that for you:
π SEE ALSO π
for additional related modules, go peek at PkgConfig::LibPkgConf. it's the main character, this page is the supporting cast. π
πΈ AUTHOR πΈ
Graham Ollis
for additional contributors, see PkgConfig::LibPkgConf. π
β COPYRIGHT AND LICENSE β
this software is copyright (c) 2016 Graham Ollis.
this is free software; you may redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. go forth and redistribute, queen. π
and that's the whole page!! π this was generated for perl v5.42.0, dated 2025-07-25, and it's the PkgConf...nf::Util(3) page β mwah, no notes, bye bestie π β¨π¦
π¦ where this page comes from
- fedora 43: perl-PkgConfig-LibPkgConf 0.11-25.fc43 Β· 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