FFI::Library - Perl Access to Dynamically Loaded Libraries
use FFI::Library; $lib = FFI::Library->new("mylib"); $fn = $lib->function("fn", "signature"); $ret = $fn->(...);
This module provides access from Perl to functions exported from dynamically linked libraries. Functions are described by
signatures, for details of which see the FFI module's documentation.
Newer and better maintained FFI modules such as FFI::Platypus provide more functionality and should probably be considered for new projects.
$clib_file = ($^O eq "MSWin32") ? "MSVCRT40.DLL" : "-lc"; $clib = FFI::Library->new($clib_file); $strlen = $clib->function("strlen", "cIp"); $n = $strlen->($my_string);
Please open any support tickets with this project's GitHub repository here:
Low level interface to ffcall that this module is based on
Portable functions for finding libraries.
Platypus is another FFI interface based on libffi. It has a more extensive feature set, and libffi has a less restrictive license.
An FFI interface for Perl on Microsoft Windows.
<firstname.lastname@example.org> is the original author of FFI.
<email@example.com> contributed fixes.
<firstname.lastname@example.org> and Gaal Yahas
<email@example.com> are the current maintainers.
<firstname.lastname@example.org is the current maintainer
This software is copyright (c) 1999 by Paul Moore.
This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License