PkgConf...Fragment(3)
π PkgConfig::LibPkgConf::Fragment β Single compiler or linker flag π
okay so bestie, welcome to a page from the User Contributed Perl Documentation (that's the manual name, perl, in case the vibe check needed receipts) β¨
This one's about PkgConfig::LibPkgConf::Fragment β and fr fr, it's just one compiler or linker flag. One. Singular. A little guy. A tiny icon doing one job and doing it well. π
π¦ SYNOPSIS π¦
Like, here's the whole plot in one code block:
use PkgConfig::LibPkgConf::Client;
my $client = PkgConfig::LibPkgConf::Client->new;
$client->scan_all(sub {
my($client, $package) = @_;
# $package isa PkgConfig::LibPkgConf::Package
foreach my $frag ($package->list_libs)
{
# $frag isa PkgConfig::LibPkgConf::Fragment
if($frag->type eq 'L')
{
say "Library directory: ", $frag->data;
}
elsif($frag->type eq 'l')
{
say "Library name: ", $frag->data;
}
}
});
so you scan all the packages, you walk the fragments, and you check the type to find out what kinda flag you're holding. 'L' means it's a library directory, 'l' means it's a library name. slay. π
πΈ DESCRIPTION πΈ
TODO
yeah. that's it. that's the whole description. the author said "TODO" and honestly? we respect the transparency. no cap, sometimes the docs are just a little placeholder and you move on with your life. π«Ά
β¨ ATTRIBUTES β¨
π type
my $type = $frag->type;
This is the type of the flag, bestie. And heads up β it may be undef if there is no type. So like, check before you go comparing it to anything, okay? π
π data
my $data = $frag->data;
The data for the fragment. that's the actual payload, the main character of this object. π
π§ to_string
my $string = $frag->to_string;
my $string = "$frag";
The string representation of the fragment. And the cute part? You can also interpolate the fragment object inside a string to convert it into a string β so "$frag" does the exact same thing. obsessed. β¨
π SUPPORT π
need help? come hang out:
- IRC:
#nativeonirc.perl.org - Project GitHub tracker: <https://github.com/plicease/PkgConfig-LibPkgConf/issues>
- Wanna contribute? open a pull request on GitHub: <https://github.com/plicease/PkgConfig-LibPkgConf/pulls>
π SEE ALSO π
For additional related modules, see PkgConfig::LibPkgConf π
π 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.
and that's the whole page, bestie β no notes, periodt β¨
This was perl v5.42.0, dated 2025-07-25. go forth and fragment responsibly ππ¦πΈ
π¦ 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