FFI::P...Runner(3pm)

🌸 NAME 🌸

FFI::Probe::Runner(3pm) β€” the probe runner for FFI, straight outta User Contributed Perl Documentation. Bestie, this is the class that runs the little code snippets inside a dynamic library so you can probe and detect platform properties. Iconic. πŸ’…


✨ VERSION ✨

version 2.11 β€” yes, that's the one. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

use FFI::Probe::Runner;

my $runner = FFI::Probe::Runner->new;
$runner->run('foo.so');

πŸ’– DESCRIPTION πŸ’–

This class executes code in a dynamic library for probing and detecting platform properties. That's literally the whole vibe: it's giving "run this code over there and tell me what the platform is doing." πŸ”₯


πŸŽ€ CONSTRUCTOR πŸŽ€

🌟 new 🌟

my $runner = FFI::Probe::Runner->new(%args);

Creates a new instance. Slay, you have a runner. 🫢

  • exe β€” the path to the dlrun wrapper. The default is usually correct.
  • flags β€” the flags to pass into dlopen. The default is RTLD_LAZY on Unix and 0 on windows.

🧚 METHODS 🧚

πŸ’œ exe πŸ’œ

my $exe = $runner->exe;

Returns the path to the dlrun wrapper. It's the path, bestie, that's it. ✨

🌈 flags 🌈

my $flags = $runner->flags;

Returns the flags to pass into dlopen. No cap. ⭐

πŸ“ verify πŸ“

$runner->verify;

Verifies the dlrun wrapper is working. If it isn't? It throws an exception in the event of failure. So like, yes, it will absolutely let you know. 😭

πŸ‘‘ run πŸ‘‘

$runner->run($dll, @args);

Runs the dlmain function in the given dynamic library, passing in the given arguments. Returns a FFI::Probe::Runner::Result object which contains the results. Main character behavior, honestly. πŸ¦‹


🌸 AUTHOR 🌸

Author: Graham Ollis <plicease@cpan.org>.

Contributors, gathered here in all their credited glory:

  • Bakkiaraj Murugesan (bakkiaraj)
  • Dylan Cali (calid)
  • pipcet
  • Zaki Mughal (zmughal)
  • Fitz Elliott (felliott)
  • Vickenty Fesunov (vyf)
  • Gregor Herrmann (gregoa)
  • Shlomi Fish (shlomif)
  • Damyan Ivanov
  • Ilya Pavlov (Ilya33)
  • Petr PΓ­saΕ™ (ppisar)
  • Mohammad S Anwar (MANWAR)
  • HΓ₯kon HΓ¦gland (hakonhagland, HAKONH)
  • Meredith (merrilymeredith, MHOWARD)
  • Diab Jerius (DJERIUS)
  • Eric Brine (IKEGAMI)
  • szTheory
  • JosΓ© JoaquΓ­n Atria (JJATRIA)
  • Pete Houston (openstrike, HOUSTON)
  • Lukas Mai (MAUKE)

This software is copyright (c) 2015-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. Periodt. πŸ«ΆπŸ’–


That's the whole page, bestie πŸ’…βœ¨ β€” brought to you by perl v5.42.3, dated 2026-08-20, from User Contributed Perl Documentation. Mwah! πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from