PkgConf...Fragment(3)

πŸ“¦
version 0.11 Β· 2 versions
, in fedora 43

πŸ’– 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:


πŸŽ€ SEE ALSO πŸŽ€

For additional related modules, see PkgConfig::LibPkgConf πŸ’…


πŸ‘‘ AUTHOR πŸ‘‘

Graham Ollis

For additional contributors see PkgConfig::LibPkgConf 🌟


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