CINXE.COM

FFI::Platypus - Write Perl bindings to non-Perl libraries with FFI. No XS required. - metacpan.org

<!DOCTYPE html> <html lang="en-US"> <head> <title>FFI::Platypus - Write Perl bindings to non-Perl libraries with FFI. No XS required. - metacpan.org</title> <link rel="preload" as="fetch" href="/account/login_status" crossorigin="anonymous" /> <link href="/assets/style-XFEQ536G.css" rel="stylesheet" type="text/css"> <script src="/assets/main-WXBSEDQJ.js" type="module"></script> <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of FFI-Platypus - MetaCPAN" href="/dist/FFI-Platypus/releases.rss" /> <link rel="canonical" href="https://metacpan.org/pod/FFI::Platypus" /> <meta name="description" content="Write Perl bindings to non-Perl libraries with FFI. No XS required." /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5"> <link rel="shortcut icon" href="/static/icons/favicon.ico"> <link rel="apple-touch-icon" sizes="152x152" href="/static/icons/apple-touch-icon.png"> <link rel="search" href="/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN"> <script async src="https://perl-ads.perlhacks.com/perl-ads.js"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=G-E82Q2V8LVD"></script> <meta property="og:site_name" content="MetaCPAN" /> <meta name="twitter:site" content="@metacpan" /> <meta property="og:type" content="article" /> <meta name="twitter:card" content="summary" /> <meta property="og:url" content="https://metacpan.org/pod/FFI::Platypus" /> <meta property="og:title" content="FFI::Platypus" /> <meta property="og:description" content="Write Perl bindings to non-Perl libraries with FFI. No XS required." /> <meta property="og:image" content="https://metacpan.org/static/images/dots.png" /> </head> <body> <nav class="navbar navbar-default" role="navigation"> <div class="header-logo-large hidden-xs"> <a href="/" tabindex="0"> <svg class="logo" aria-label="MetaCPAN"> <use class="logo" href="/static/images/metacpan-logo.svg#logo" /> </svg> </a> </div> <div class="header-logo-icon visible-xs"> <a href="/"> <svg class="logo" aria-label="MetaCPAN"> <use class="logo" href="/static/images/metacpan-logo.svg#dots" /> </svg> </a> </div> <ul class="nav navbar-nav menu-items hidden-xs hidden-sm"> <li><a href="/about">About</a></li> <li><a href="/about/sponsors">Sponsor</a></li> <li><a href="https://grep.metacpan.org/">grep::cpan</a></li> <li><a href="/recent">Recent</a></li> <li><a href="/about/faq">FAQ</a></li> <li><a href="/tools">Tools</a></li> <li><a href="https://fastapi.metacpan.org/">API</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <button type="button" class="searchbar-btn visible-xs visible-sm"> <i class="fa fa-search button-fa-icon"></i> </button> <form action="/search" class="searchbar-form visible-md visible-lg search-form form-horizontal"> <input type="hidden" name="size" id="metacpan_search-size" value="20"> <div class="form-group"> <div class="search-group"> <i class="fa fa-search"></i> <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value=""> </div> </div> </form> <li class="icon-slidepanel visible-xs visible-sm"> <button data-toggle="slidepanel" data-target=".slidepanel"> <span class="button-fa-icon"> <i class="fa fa-bars slidepanel-open"></i> <i class="fa fa-times slidepanel-close"></i> </span> </button> </li> <li class="dropdown login-dropdown show-logged-in"> <button type="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i> <i class="fas fa-chevron-down"></i> </button> <ul class="dropdown-menu"> <li><a href="/account/identities">Identities</a></li> <li><a href="/account/profile">Profile</a></li> <li><a href="/account/favorite/list">Favorites</a></li> <li> <a href="#" type="button" class="logout-button"> Logout </a> </li> </ul> </li> <li class="dropdown login-dropdown show-logged-out"> <button type="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-user button-fa-icon avatar-placeholder" aria-hidden="true"></i> <i class="fas fa-chevron-down"></i> </button> <ul class="dropdown-menu"> <li> <a href="/login/github"> <i class="fab fa-github fa-fw"></i> GitHub </a> </li> <li> <a href="/login/twitter"> <i class="fab fa-twitter fa-fw"></i> Twitter </a> </li> <li> <a href="/login/google"> <i class="fab fa-google fa-fw"></i> Google </a> </li> </ul> </li> <li class="dropdown login-dropdown hide-logged-in hide-logged-out"> <button> <i class="fa fa-user button-fa-icon" aria-hidden="true"></i> </button> </li> </ul> </nav> <div class="page-content "> <div id="perl-ad-target" class="top-notify-banner perl-ad-target"> </div> <nav class="sidebar"> <div class="slidepanel"> <ul class="nav-list "> <li class="nav-header no-margin-top"> <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of FFI-Platypus was released."> <span class="relatize">18 Dec 2024 18:12:39 UTC</span> </div> </li> <li> Distribution: <a href="/dist/FFI-Platypus">FFI-Platypus</a> </li> <li> Module version: 2.10 </li> <li> <a data-keyboard-shortcut="g s" href="/dist/FFI-Platypus/source/lib/FFI/Platypus.pm">Source</a> (<a href="/dist/FFI-Platypus/source/lib/FFI/Platypus.pm?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g b" href="/dist/FFI-Platypus/source/lib/FFI">Browse</a> (<a href="/dist/FFI-Platypus/source/lib/FFI?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g c" href="/dist/FFI-Platypus/changes">Changes</a> </li> <li> <a rel="noopener nofollow" class="nopopup" href="https://pl.atypus.org">Homepage</a> </li> <li> <a class="nopopup" href="/dist/FFI-Platypus/contribute">How to Contribute</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/PerlFFI/FFI-Platypus">Repository</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/PerlFFI/FFI-Platypus/issues">Issues</a> </li> <li> <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=FFI-Platypus+2.10" title="Matrix">Testers</a> </li> <li> <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/PLICEASE/FFI-Platypus-2.10">Kwalitee</a> </li> <li> <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on FFI-Platypus who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)"> Bus factor: 1 </div> </li> <li> License: perl_5 </li> <li> Perl: v5.8.4 </li> <li class="chat-banner"> <div><a rel="noopener nofollow" target="_blank" href="https://kiwiirc.com/nextclient/#irc://irc.perl.org/#native?nick=mc-guest-?">Chat with us!</a></div> </li> <li class="nav-header">Activity</li> <li> <div class="activity-graph"> <img src="/dist/FFI-Platypus/activity.svg?res=month" /> <div class="comment">24 month</div> </div> </li> <li class="nav-header">Tools</li> <li> <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-Platypus-2.10.tar.gz"> Download (<span itemprop="fileSize">412.94KB</span>)</a> </li> <li> <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FPLICEASE%2FFFI-Platypus-2.10%2Flib%2FFFI%2FPlatypus.pm"> MetaCPAN Explorer </a> </li> <li> <a href="/dist/FFI-Platypus/permissions"> Permissions </a> </li> <li> <a href="/dist/FFI-Platypus/releases.rss"> Subscribe to distribution </a> </li> <li> <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog"> Install Instructions </button> </li> <li> <form action="/search"> <input type="hidden" name="q" value="dist:FFI-Platypus"> <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form"> <input type="submit" style="display: none"> </form> </li> <li> <form action="https://grep.metacpan.org/search"> <input type="hidden" name="qd" value="FFI-Platypus"> <input type="hidden" name="source" value="metacpan"> <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form"> <input type="submit" style="display: none"> </form> </li> <li class="version-jump"> <select class="select-navigator form-control tool-bar-form"> <option disabled selected>Jump to version</option> <option disabled value="/release/PLICEASE/FFI-Platypus-2.10/view/lib/FFI/Platypus.pm" >2.10 (PLICEASE on 2024-12-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.09/view/lib/FFI/Platypus.pm" >2.09 (PLICEASE on 2024-08-19)</option> <optgroup label="BackPAN">' <option value="/release/PLICEASE/FFI-Platypus-2.08/view/lib/FFI/Platypus.pm" >2.08 (PLICEASE on 2023-05-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.07/view/lib/FFI/Platypus.pm" >2.07 (PLICEASE on 2023-03-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.06_01/view/lib/FFI/Platypus.pm" >2.06_01 DEV (PLICEASE on 2023-02-27)</option> <option value="/release/PLICEASE/FFI-Platypus-2.05/view/lib/FFI/Platypus.pm" >2.05 (PLICEASE on 2022-11-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.04/view/lib/FFI/Platypus.pm" >2.04 (PLICEASE on 2022-11-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.03/view/lib/FFI/Platypus.pm" >2.03 (PLICEASE on 2022-10-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.02/view/lib/FFI/Platypus.pm" >2.02 (PLICEASE on 2022-10-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.01/view/lib/FFI/Platypus.pm" >2.01 (PLICEASE on 2022-08-30)</option> <option value="/release/PLICEASE/FFI-Platypus-2.00/view/lib/FFI/Platypus.pm" >2.00 (PLICEASE on 2022-08-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.91_01/view/lib/FFI/Platypus.pm" >1.91_01 DEV (PLICEASE on 2022-07-05)</option> <option value="/release/PLICEASE/FFI-Platypus-1.90_02/view/lib/FFI/Platypus.pm" >1.90_02 DEV (PLICEASE on 2022-06-27)</option> <option value="/release/PLICEASE/FFI-Platypus-1.90_01/view/lib/FFI/Platypus.pm" >1.90_01 DEV (PLICEASE on 2022-06-24)</option> <option value="/release/PLICEASE/FFI-Platypus-1.61_01/view/lib/FFI/Platypus.pm" >1.61_01 DEV (PLICEASE on 2022-06-23)</option> <option value="/release/PLICEASE/FFI-Platypus-1.60_01/view/lib/FFI/Platypus.pm" >1.60_01 DEV (PLICEASE on 2022-06-23)</option> <option value="/release/PLICEASE/FFI-Platypus-1.59_01/view/lib/FFI/Platypus.pm" >1.59_01 DEV (PLICEASE on 2022-06-19)</option> <option value="/release/PLICEASE/FFI-Platypus-1.58/view/lib/FFI/Platypus.pm" >1.58 (PLICEASE on 2022-06-19)</option> <option value="/release/PLICEASE/FFI-Platypus-1.57/view/lib/FFI/Platypus.pm" >1.57 (PLICEASE on 2022-06-16)</option> <option value="/release/PLICEASE/FFI-Platypus-1.56/view/lib/FFI/Platypus.pm" >1.56 (PLICEASE on 2021-10-28)</option> <option value="/release/PLICEASE/FFI-Platypus-1.55/view/lib/FFI/Platypus.pm" >1.55 (PLICEASE on 2021-07-29)</option> <option value="/release/PLICEASE/FFI-Platypus-1.54_01/view/lib/FFI/Platypus.pm" >1.54_01 DEV (PLICEASE on 2021-07-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.53/view/lib/FFI/Platypus.pm" >1.53 (PLICEASE on 2021-07-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.52/view/lib/FFI/Platypus.pm" >1.52 (PLICEASE on 2021-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.51/view/lib/FFI/Platypus.pm" >1.51 (PLICEASE on 2021-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.50/view/lib/FFI/Platypus.pm" >1.50 (PLICEASE on 2021-06-30)</option> <option value="/release/PLICEASE/FFI-Platypus-1.49_01/view/lib/FFI/Platypus.pm" >1.49_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.48_01/view/lib/FFI/Platypus.pm" >1.48_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.47_01/view/lib/FFI/Platypus.pm" >1.47_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.46/view/lib/FFI/Platypus.pm" >1.46 (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.45_01/view/lib/FFI/Platypus.pm" >1.45_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.44/view/lib/FFI/Platypus.pm" >1.44 (PLICEASE on 2021-06-20)</option> <option value="/release/PLICEASE/FFI-Platypus-1.43/view/lib/FFI/Platypus.pm" >1.43 (PLICEASE on 2021-03-17)</option> <option value="/release/PLICEASE/FFI-Platypus-1.42/view/lib/FFI/Platypus.pm" >1.42 (PLICEASE on 2021-03-15)</option> <option value="/release/PLICEASE/FFI-Platypus-1.41_01/view/lib/FFI/Platypus.pm" >1.41_01 DEV (PLICEASE on 2021-03-14)</option> <option value="/release/PLICEASE/FFI-Platypus-1.40_01/view/lib/FFI/Platypus.pm" >1.40_01 DEV (PLICEASE on 2021-03-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.39_01/view/lib/FFI/Platypus.pm" >1.39_01 DEV (PLICEASE on 2021-03-10)</option> <option value="/release/PLICEASE/FFI-Platypus-1.38/view/lib/FFI/Platypus.pm" >1.38 (PLICEASE on 2021-03-09)</option> <option value="/release/PLICEASE/FFI-Platypus-1.37_01/view/lib/FFI/Platypus.pm" >1.37_01 DEV (PLICEASE on 2021-03-06)</option> <option value="/release/PLICEASE/FFI-Platypus-1.36_01/view/lib/FFI/Platypus.pm" >1.36_01 DEV (PLICEASE on 2021-03-03)</option> <option value="/release/PLICEASE/FFI-Platypus-1.35_01/view/lib/FFI/Platypus.pm" >1.35_01 DEV (PLICEASE on 2021-03-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.34/view/lib/FFI/Platypus.pm" >1.34 (PLICEASE on 2020-10-23)</option> <option value="/release/PLICEASE/FFI-Platypus-1.33/view/lib/FFI/Platypus.pm" >1.33 (PLICEASE on 2020-09-28)</option> <option value="/release/PLICEASE/FFI-Platypus-1.32/view/lib/FFI/Platypus.pm" >1.32 (PLICEASE on 2020-09-21)</option> <option value="/release/PLICEASE/FFI-Platypus-1.31/view/lib/FFI/Platypus.pm" >1.31 (PLICEASE on 2020-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.30/view/lib/FFI/Platypus.pm" >1.30 (PLICEASE on 2020-06-16)</option> <option value="/release/PLICEASE/FFI-Platypus-1.29/view/lib/FFI/Platypus.pm" >1.29 (PLICEASE on 2020-06-06)</option> <option value="/release/PLICEASE/FFI-Platypus-1.28/view/lib/FFI/Platypus.pm" >1.28 (PLICEASE on 2020-05-20)</option> <option value="/release/PLICEASE/FFI-Platypus-1.27_01/view/lib/FFI/Platypus.pm" >1.27_01 DEV (PLICEASE on 2020-05-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.26/view/lib/FFI/Platypus.pm" >1.26 (PLICEASE on 2020-05-07)</option> <option value="/release/PLICEASE/FFI-Platypus-1.25/view/lib/FFI/Platypus.pm" >1.25 (PLICEASE on 2020-05-06)</option> <option value="/release/PLICEASE/FFI-Platypus-1.24/view/lib/FFI/Platypus.pm" >1.24 (PLICEASE on 2020-05-02)</option> <option value="/release/PLICEASE/FFI-Platypus-1.23_01/view/lib/FFI/Platypus.pm" >1.23_01 DEV (PLICEASE on 2020-05-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.22_01/view/lib/FFI/Platypus.pm" >1.22_01 DEV (PLICEASE on 2020-05-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.21_01/view/lib/FFI/Platypus.pm" >1.21_01 DEV (PLICEASE on 2020-04-30)</option> <option value="/release/PLICEASE/FFI-Platypus-1.20_01/view/lib/FFI/Platypus.pm" >1.20_01 DEV (PLICEASE on 2020-04-29)</option> <option value="/release/PLICEASE/FFI-Platypus-1.19_01/view/lib/FFI/Platypus.pm" >1.19_01 DEV (PLICEASE on 2020-04-27)</option> <option value="/release/PLICEASE/FFI-Platypus-1.18_01/view/lib/FFI/Platypus.pm" >1.18_01 DEV (PLICEASE on 2020-04-19)</option> <option value="/release/PLICEASE/FFI-Platypus-1.17_01/view/lib/FFI/Platypus.pm" >1.17_01 DEV (PLICEASE on 2020-04-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.16_01/view/lib/FFI/Platypus.pm" >1.16_01 DEV (PLICEASE on 2020-04-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.15_01/view/lib/FFI/Platypus.pm" >1.15_01 DEV (PLICEASE on 2020-04-17)</option> <option value="/release/PLICEASE/FFI-Platypus-1.14_01/view/lib/FFI/Platypus.pm" >1.14_01 DEV (PLICEASE on 2020-04-17)</option> <option value="/release/PLICEASE/FFI-Platypus-1.12_01/view/lib/FFI/Platypus.pm" >1.12_01 DEV (PLICEASE on 2020-04-17)</option> <option value="/release/PLICEASE/FFI-Platypus-1.11/view/lib/FFI/Platypus.pm" >1.11 (PLICEASE on 2020-04-16)</option> <option value="/release/PLICEASE/FFI-Platypus-1.10/view/lib/FFI/Platypus.pm" >1.10 (PLICEASE on 2020-02-05)</option> <option value="/release/PLICEASE/FFI-Platypus-1.09/view/lib/FFI/Platypus.pm" >1.09 (PLICEASE on 2020-01-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.08_01/view/lib/FFI/Platypus.pm" >1.08_01 DEV (PLICEASE on 2020-01-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.07/view/lib/FFI/Platypus.pm" >1.07 (PLICEASE on 2019-12-28)</option> <option value="/release/PLICEASE/FFI-Platypus-1.06/view/lib/FFI/Platypus.pm" >1.06 (PLICEASE on 2019-12-14)</option> <option value="/release/PLICEASE/FFI-Platypus-1.05/view/lib/FFI/Platypus.pm" >1.05 (PLICEASE on 2019-12-13)</option> <option value="/release/PLICEASE/FFI-Platypus-1.04_01/view/lib/FFI/Platypus.pm" >1.04_01 DEV (PLICEASE on 2019-12-13)</option> <option value="/release/PLICEASE/FFI-Platypus-1.03_01/view/lib/FFI/Platypus.pm" >1.03_01 DEV (PLICEASE on 2019-12-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.02/view/lib/FFI/Platypus.pm" >1.02 (PLICEASE on 2019-12-09)</option> <option value="/release/PLICEASE/FFI-Platypus-1.01/view/lib/FFI/Platypus.pm" >1.01 (PLICEASE on 2019-11-16)</option> <option value="/release/PLICEASE/FFI-Platypus-1.00/view/lib/FFI/Platypus.pm" >1.00 (PLICEASE on 2019-11-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_06/view/lib/FFI/Platypus.pm" >0.99_06 DEV (PLICEASE on 2019-11-13)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_05/view/lib/FFI/Platypus.pm" >0.99_05 DEV (PLICEASE on 2019-10-31)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_04/view/lib/FFI/Platypus.pm" >0.99_04 DEV (PLICEASE on 2019-10-25)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_03/view/lib/FFI/Platypus.pm" >0.99_03 DEV (PLICEASE on 2019-10-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_02/view/lib/FFI/Platypus.pm" >0.99_02 DEV (PLICEASE on 2019-10-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_01/view/lib/FFI/Platypus.pm" >0.99_01 DEV (PLICEASE on 2019-10-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.98/view/lib/FFI/Platypus.pm" >0.98 (PLICEASE on 2019-10-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_05/view/lib/FFI/Platypus.pm" >0.97_05 DEV (PLICEASE on 2019-10-12)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_04/view/lib/FFI/Platypus.pm" >0.97_04 DEV (PLICEASE on 2019-10-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_03/view/lib/FFI/Platypus.pm" >0.97_03 DEV (PLICEASE on 2019-09-26)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_02/view/lib/FFI/Platypus.pm" >0.97_02 DEV (PLICEASE on 2019-09-20)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_01/view/lib/FFI/Platypus.pm" >0.97_01 DEV (PLICEASE on 2019-09-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.96/view/lib/FFI/Platypus.pm" >0.96 (PLICEASE on 2019-08-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_11/view/lib/FFI/Platypus.pm" >0.95_11 DEV (PLICEASE on 2019-08-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_10/view/lib/FFI/Platypus.pm" >0.95_10 DEV (PLICEASE on 2019-08-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_09/view/lib/FFI/Platypus.pm" >0.95_09 DEV (PLICEASE on 2019-08-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_08/view/lib/FFI/Platypus.pm" >0.95_08 DEV (PLICEASE on 2019-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_07/view/lib/FFI/Platypus.pm" >0.95_07 DEV (PLICEASE on 2019-08-13)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_06/view/lib/FFI/Platypus.pm" >0.95_06 DEV (PLICEASE on 2019-08-03)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_05/view/lib/FFI/Platypus.pm" >0.95_05 DEV (PLICEASE on 2019-08-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_04/view/lib/FFI/Platypus.pm" >0.95_04 DEV (PLICEASE on 2019-08-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_03/view/lib/FFI/Platypus.pm" >0.95_03 DEV (PLICEASE on 2019-07-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_02/view/lib/FFI/Platypus.pm" >0.95_02 DEV (PLICEASE on 2019-07-25)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_01/view/lib/FFI/Platypus.pm" >0.95_01 DEV (PLICEASE on 2019-07-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.94/view/lib/FFI/Platypus.pm" >0.94 (PLICEASE on 2019-07-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.93_03/view/lib/FFI/Platypus.pm" >0.93_03 DEV (PLICEASE on 2019-07-22)</option> <option value="/release/PLICEASE/FFI-Platypus-0.93_02/view/lib/FFI/Platypus.pm" >0.93_02 DEV (PLICEASE on 2019-07-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.93_01/view/lib/FFI/Platypus.pm" >0.93_01 DEV (PLICEASE on 2019-07-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.92/view/lib/FFI/Platypus.pm" >0.92 (PLICEASE on 2019-07-17)</option> <option value="/release/PLICEASE/FFI-Platypus-0.91_02/view/lib/FFI/Platypus.pm" >0.91_02 DEV (PLICEASE on 2019-07-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.91_01/view/lib/FFI/Platypus.pm" >0.91_01 DEV (PLICEASE on 2019-07-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.90/view/lib/FFI/Platypus.pm" >0.90 (PLICEASE on 2019-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.89_01/view/lib/FFI/Platypus.pm" >0.89_01 DEV (PLICEASE on 2019-06-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.88/view/lib/FFI/Platypus.pm" >0.88 (PLICEASE on 2019-06-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.87/view/lib/FFI/Platypus.pm" >0.87 (PLICEASE on 2019-04-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.86/view/lib/FFI/Platypus.pm" >0.86 (PLICEASE on 2019-03-02)</option> <option value="/release/PLICEASE/FFI-Platypus-0.85_01/view/lib/FFI/Platypus.pm" >0.85_01 DEV (PLICEASE on 2019-03-02)</option> <option value="/release/PLICEASE/FFI-Platypus-0.84/view/lib/FFI/Platypus.pm" >0.84 (PLICEASE on 2019-02-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.83/view/lib/FFI/Platypus.pm" >0.83 (PLICEASE on 2019-02-12)</option> <option value="/release/PLICEASE/FFI-Platypus-0.82/view/lib/FFI/Platypus.pm" >0.82 (PLICEASE on 2019-02-10)</option> <option value="/release/PLICEASE/FFI-Platypus-0.81_04/view/lib/FFI/Platypus.pm" >0.81_04 DEV (PLICEASE on 2019-02-08)</option> <option value="/release/PLICEASE/FFI-Platypus-0.81_03/view/lib/FFI/Platypus.pm" >0.81_03 DEV (PLICEASE on 2019-02-08)</option> <option value="/release/PLICEASE/FFI-Platypus-0.81_02/view/lib/FFI/Platypus.pm" >0.81_02 DEV (PLICEASE on 2019-02-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.81_01/view/lib/FFI/Platypus.pm" >0.81_01 DEV (PLICEASE on 2019-02-04)</option> <option value="/release/PLICEASE/FFI-Platypus-0.80/view/lib/FFI/Platypus.pm" >0.80 (PLICEASE on 2019-02-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.79/view/lib/FFI/Platypus.pm" >0.79 (PLICEASE on 2019-02-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.78/view/lib/FFI/Platypus.pm" >0.78 (PLICEASE on 2019-01-30)</option> <option value="/release/PLICEASE/FFI-Platypus-0.77_03/view/lib/FFI/Platypus.pm" >0.77_03 DEV (PLICEASE on 2019-01-30)</option> <option value="/release/PLICEASE/FFI-Platypus-0.77_02/view/lib/FFI/Platypus.pm" >0.77_02 DEV (PLICEASE on 2019-01-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.77_01/view/lib/FFI/Platypus.pm" >0.77_01 DEV (PLICEASE on 2019-01-28)</option> <option value="/release/PLICEASE/FFI-Platypus-0.76_02/view/lib/FFI/Platypus.pm" >0.76_02 DEV (PLICEASE on 2019-01-21)</option> <option value="/release/PLICEASE/FFI-Platypus-0.76_01/view/lib/FFI/Platypus.pm" >0.76_01 DEV (PLICEASE on 2019-01-21)</option> <option value="/release/PLICEASE/FFI-Platypus-0.75_01/view/lib/FFI/Platypus.pm" >0.75_01 DEV (PLICEASE on 2019-01-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.74/view/lib/FFI/Platypus.pm" >0.74 (PLICEASE on 2019-01-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.73_01/view/lib/FFI/Platypus.pm" >0.73_01 DEV (PLICEASE on 2019-01-13)</option> <option value="/release/PLICEASE/FFI-Platypus-0.72_01/view/lib/FFI/Platypus.pm" >0.72_01 DEV (PLICEASE on 2019-01-12)</option> <option value="/release/PLICEASE/FFI-Platypus-0.71_01/view/lib/FFI/Platypus.pm" >0.71_01 DEV (PLICEASE on 2019-01-11)</option> <option value="/release/PLICEASE/FFI-Platypus-0.70_01/view/lib/FFI/Platypus.pm" >0.70_01 DEV (PLICEASE on 2019-01-10)</option> <option value="/release/PLICEASE/FFI-Platypus-0.69_01/view/lib/FFI/Platypus.pm" >0.69_01 DEV (PLICEASE on 2019-01-09)</option> <option value="/release/PLICEASE/FFI-Platypus-0.68_01/view/lib/FFI/Platypus.pm" >0.68_01 DEV (PLICEASE on 2019-01-06)</option> <option value="/release/PLICEASE/FFI-Platypus-0.67_01/view/lib/FFI/Platypus.pm" >0.67_01 DEV (PLICEASE on 2019-01-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.66_01/view/lib/FFI/Platypus.pm" >0.66_01 DEV (PLICEASE on 2019-01-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.65_01/view/lib/FFI/Platypus.pm" >0.65_01 DEV (PLICEASE on 2019-01-04)</option> <option value="/release/PLICEASE/FFI-Platypus-0.64_01/view/lib/FFI/Platypus.pm" >0.64_01 DEV (PLICEASE on 2019-01-03)</option> <option value="/release/PLICEASE/FFI-Platypus-0.63_01/view/lib/FFI/Platypus.pm" >0.63_01 DEV (PLICEASE on 2019-01-02)</option> <option value="/release/PLICEASE/FFI-Platypus-0.62_01/view/lib/FFI/Platypus.pm" >0.62_01 DEV (PLICEASE on 2019-01-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.61_01/view/lib/FFI/Platypus.pm" >0.61_01 DEV (PLICEASE on 2019-01-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.60_01/view/lib/FFI/Platypus.pm" >0.60_01 DEV (PLICEASE on 2018-12-30)</option> <option value="/release/PLICEASE/FFI-Platypus-0.59/view/lib/FFI/Platypus.pm" >0.59 (PLICEASE on 2018-12-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.58/view/lib/FFI/Platypus.pm" >0.58 (PLICEASE on 2018-11-20)</option> <option value="/release/PLICEASE/FFI-Platypus-0.57_01/view/lib/FFI/Platypus.pm" >0.57_01 DEV (PLICEASE on 2018-11-04)</option> <option value="/release/PLICEASE/FFI-Platypus-0.56/view/lib/FFI/Platypus.pm" >0.56 (PLICEASE on 2018-09-03)</option> <option value="/release/PLICEASE/FFI-Platypus-0.55/view/lib/FFI/Platypus.pm" >0.55 (PLICEASE on 2018-08-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.54_03/view/lib/FFI/Platypus.pm" >0.54_03 DEV (PLICEASE on 2018-08-28)</option> <option value="/release/PLICEASE/FFI-Platypus-0.54_02/view/lib/FFI/Platypus.pm" >0.54_02 DEV (PLICEASE on 2018-08-28)</option> <option value="/release/PLICEASE/FFI-Platypus-0.54_01/view/lib/FFI/Platypus.pm" >0.54_01 DEV (PLICEASE on 2018-08-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.53/view/lib/FFI/Platypus.pm" >0.53 (PLICEASE on 2018-08-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.52_04/view/lib/FFI/Platypus.pm" >0.52_04 DEV (PLICEASE on 2018-08-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.52_03/view/lib/FFI/Platypus.pm" >0.52_03 DEV (PLICEASE on 2018-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.52_02/view/lib/FFI/Platypus.pm" >0.52_02 DEV (PLICEASE on 2018-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.52_01/view/lib/FFI/Platypus.pm" >0.52_01 DEV (PLICEASE on 2018-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.51/view/lib/FFI/Platypus.pm" >0.51 (PLICEASE on 2018-08-09)</option> <option value="/release/PLICEASE/FFI-Platypus-0.50/view/lib/FFI/Platypus.pm" >0.50 (PLICEASE on 2018-06-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_05/view/lib/FFI/Platypus.pm" >0.49_05 DEV (PLICEASE on 2018-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_04/view/lib/FFI/Platypus.pm" >0.49_04 DEV (PLICEASE on 2018-05-27)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_03/view/lib/FFI/Platypus.pm" >0.49_03 DEV (PLICEASE on 2018-05-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_02/view/lib/FFI/Platypus.pm" >0.49_02 DEV (PLICEASE on 2018-05-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_01/view/lib/FFI/Platypus.pm" >0.49_01 DEV (PLICEASE on 2018-05-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.48/view/lib/FFI/Platypus.pm" >0.48 (PLICEASE on 2018-02-20)</option> <option value="/release/PLICEASE/FFI-Platypus-0.47/view/lib/FFI/Platypus.pm" >0.47 (PLICEASE on 2017-03-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.46/view/lib/FFI/Platypus.pm" >0.46 (PLICEASE on 2017-03-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.45/view/lib/FFI/Platypus.pm" >0.45 (PLICEASE on 2016-10-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.44/view/lib/FFI/Platypus.pm" >0.44 (PLICEASE on 2016-10-20)</option> <option value="/release/PLICEASE/FFI-Platypus-0.43/view/lib/FFI/Platypus.pm" >0.43 (PLICEASE on 2016-07-08)</option> <option value="/release/PLICEASE/FFI-Platypus-0.42_01/view/lib/FFI/Platypus.pm" >0.42_01 DEV (PLICEASE on 2016-07-06)</option> <option value="/release/PLICEASE/FFI-Platypus-0.42/view/lib/FFI/Platypus.pm" >0.42 (PLICEASE on 2016-05-06)</option> <option value="/release/PLICEASE/FFI-Platypus-0.41/view/lib/FFI/Platypus.pm" >0.41 (PLICEASE on 2016-04-09)</option> <option value="/release/PLICEASE/FFI-Platypus-0.40/view/lib/FFI/Platypus.pm" >0.40 (PLICEASE on 2015-08-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37_04-TRIAL/view/lib/FFI/Platypus.pm" >0.37_04-TRIAL DEV (PLICEASE on 2015-08-07)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37_03-TRIAL/view/lib/FFI/Platypus.pm" >0.37_03-TRIAL DEV (PLICEASE on 2015-08-07)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37_02-TRIAL/view/lib/FFI/Platypus.pm" >0.37_02-TRIAL DEV (PLICEASE on 2015-07-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37_01-TRIAL/view/lib/FFI/Platypus.pm" >0.37_01-TRIAL DEV (PLICEASE on 2015-07-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37/view/lib/FFI/Platypus.pm" >0.37 (PLICEASE on 2015-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.36/view/lib/FFI/Platypus.pm" >0.36 (PLICEASE on 2015-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.35/view/lib/FFI/Platypus.pm" >0.35 (PLICEASE on 2015-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.34/view/lib/FFI/Platypus.pm" >0.34 (PLICEASE on 2015-05-07)</option> <option value="/release/PLICEASE/FFI-Platypus-0.33/view/lib/FFI/Platypus.pm" >0.33 (PLICEASE on 2015-03-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.32/view/lib/FFI/Platypus.pm" >0.32 (PLICEASE on 2015-03-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.31/view/lib/FFI/Platypus.pm" >0.31 (PLICEASE on 2015-02-26)</option> <option value="/release/PLICEASE/FFI-Platypus-0.30/view/lib/FFI/Platypus.pm" >0.30 (PLICEASE on 2015-02-25)</option> <option value="/release/PLICEASE/FFI-Platypus-0.29/view/lib/FFI/Platypus.pm" >0.29 (PLICEASE on 2015-02-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.28/view/lib/FFI/Platypus.pm" >0.28 (PLICEASE on 2015-02-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.27/view/lib/FFI/Platypus.pm" >0.27 (PLICEASE on 2015-02-22)</option> <option value="/release/PLICEASE/FFI-Platypus-0.26/view/lib/FFI/Platypus.pm" >0.26 (PLICEASE on 2015-02-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.25/view/lib/FFI/Platypus.pm" >0.25 (PLICEASE on 2015-02-17)</option> <option value="/release/PLICEASE/FFI-Platypus-0.24/view/lib/FFI/Platypus.pm" >0.24 (PLICEASE on 2015-02-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.23/view/lib/FFI/Platypus.pm" >0.23 (PLICEASE on 2015-02-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.22/view/lib/FFI/Platypus.pm" >0.22 (PLICEASE on 2015-02-12)</option> <option value="/release/PLICEASE/FFI-Platypus-0.21/view/lib/FFI/Platypus.pm" >0.21 (PLICEASE on 2015-02-09)</option> <option value="/release/PLICEASE/FFI-Platypus-0.20/view/lib/FFI/Platypus.pm" >0.20 (PLICEASE on 2015-02-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.19/view/lib/FFI/Platypus.pm" >0.19 (PLICEASE on 2015-02-03)</option> <option value="/release/PLICEASE/FFI-Platypus-0.18/view/lib/FFI/Platypus.pm" >0.18 (PLICEASE on 2015-01-30)</option> <option value="/release/PLICEASE/FFI-Platypus-0.17/view/lib/FFI/Platypus.pm" >0.17 (PLICEASE on 2015-01-28)</option> <option value="/release/PLICEASE/FFI-Platypus-0.16/view/lib/FFI/Platypus.pm" >0.16 (PLICEASE on 2015-01-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.15/view/lib/FFI/Platypus.pm" >0.15 (PLICEASE on 2015-01-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.14/view/lib/FFI/Platypus.pm" >0.14 (PLICEASE on 2015-01-22)</option> <option value="/release/PLICEASE/FFI-Platypus-0.12/view/lib/FFI/Platypus.pm" >0.12 (PLICEASE on 2015-01-22)</option> </optgroup> </select> </li> <li class="version-diff"> <select class="select-navigator form-control tool-bar-form"> <option disabled selected>Diff with version</option> <option disabled value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.10/lib/FFI/Platypus.pm" >2.10 (PLICEASE on 2024-12-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.09/lib/FFI/Platypus.pm" >2.09 (PLICEASE on 2024-08-19)</option> <optgroup label="BackPAN">' <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.08/lib/FFI/Platypus.pm" >2.08 (PLICEASE on 2023-05-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.07/lib/FFI/Platypus.pm" >2.07 (PLICEASE on 2023-03-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.06_01/lib/FFI/Platypus.pm" >2.06_01 DEV (PLICEASE on 2023-02-27)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.05/lib/FFI/Platypus.pm" >2.05 (PLICEASE on 2022-11-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.04/lib/FFI/Platypus.pm" >2.04 (PLICEASE on 2022-11-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.03/lib/FFI/Platypus.pm" >2.03 (PLICEASE on 2022-10-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.02/lib/FFI/Platypus.pm" >2.02 (PLICEASE on 2022-10-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.01/lib/FFI/Platypus.pm" >2.01 (PLICEASE on 2022-08-30)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-2.00/lib/FFI/Platypus.pm" >2.00 (PLICEASE on 2022-08-12)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.91_01/lib/FFI/Platypus.pm" >1.91_01 DEV (PLICEASE on 2022-07-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.90_02/lib/FFI/Platypus.pm" >1.90_02 DEV (PLICEASE on 2022-06-27)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.90_01/lib/FFI/Platypus.pm" >1.90_01 DEV (PLICEASE on 2022-06-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.61_01/lib/FFI/Platypus.pm" >1.61_01 DEV (PLICEASE on 2022-06-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.60_01/lib/FFI/Platypus.pm" >1.60_01 DEV (PLICEASE on 2022-06-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.59_01/lib/FFI/Platypus.pm" >1.59_01 DEV (PLICEASE on 2022-06-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.58/lib/FFI/Platypus.pm" >1.58 (PLICEASE on 2022-06-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.57/lib/FFI/Platypus.pm" >1.57 (PLICEASE on 2022-06-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.56/lib/FFI/Platypus.pm" >1.56 (PLICEASE on 2021-10-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.55/lib/FFI/Platypus.pm" >1.55 (PLICEASE on 2021-07-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.54_01/lib/FFI/Platypus.pm" >1.54_01 DEV (PLICEASE on 2021-07-12)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.53/lib/FFI/Platypus.pm" >1.53 (PLICEASE on 2021-07-12)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.52/lib/FFI/Platypus.pm" >1.52 (PLICEASE on 2021-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.51/lib/FFI/Platypus.pm" >1.51 (PLICEASE on 2021-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.50/lib/FFI/Platypus.pm" >1.50 (PLICEASE on 2021-06-30)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.49_01/lib/FFI/Platypus.pm" >1.49_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.48_01/lib/FFI/Platypus.pm" >1.48_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.47_01/lib/FFI/Platypus.pm" >1.47_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.46/lib/FFI/Platypus.pm" >1.46 (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.45_01/lib/FFI/Platypus.pm" >1.45_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.44/lib/FFI/Platypus.pm" >1.44 (PLICEASE on 2021-06-20)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.43/lib/FFI/Platypus.pm" >1.43 (PLICEASE on 2021-03-17)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.42/lib/FFI/Platypus.pm" >1.42 (PLICEASE on 2021-03-15)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.41_01/lib/FFI/Platypus.pm" >1.41_01 DEV (PLICEASE on 2021-03-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.40_01/lib/FFI/Platypus.pm" >1.40_01 DEV (PLICEASE on 2021-03-12)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.39_01/lib/FFI/Platypus.pm" >1.39_01 DEV (PLICEASE on 2021-03-10)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.38/lib/FFI/Platypus.pm" >1.38 (PLICEASE on 2021-03-09)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.37_01/lib/FFI/Platypus.pm" >1.37_01 DEV (PLICEASE on 2021-03-06)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.36_01/lib/FFI/Platypus.pm" >1.36_01 DEV (PLICEASE on 2021-03-03)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.35_01/lib/FFI/Platypus.pm" >1.35_01 DEV (PLICEASE on 2021-03-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.34/lib/FFI/Platypus.pm" >1.34 (PLICEASE on 2020-10-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.33/lib/FFI/Platypus.pm" >1.33 (PLICEASE on 2020-09-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.32/lib/FFI/Platypus.pm" >1.32 (PLICEASE on 2020-09-21)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.31/lib/FFI/Platypus.pm" >1.31 (PLICEASE on 2020-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.30/lib/FFI/Platypus.pm" >1.30 (PLICEASE on 2020-06-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.29/lib/FFI/Platypus.pm" >1.29 (PLICEASE on 2020-06-06)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.28/lib/FFI/Platypus.pm" >1.28 (PLICEASE on 2020-05-20)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.27_01/lib/FFI/Platypus.pm" >1.27_01 DEV (PLICEASE on 2020-05-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.26/lib/FFI/Platypus.pm" >1.26 (PLICEASE on 2020-05-07)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.25/lib/FFI/Platypus.pm" >1.25 (PLICEASE on 2020-05-06)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.24/lib/FFI/Platypus.pm" >1.24 (PLICEASE on 2020-05-02)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.23_01/lib/FFI/Platypus.pm" >1.23_01 DEV (PLICEASE on 2020-05-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.22_01/lib/FFI/Platypus.pm" >1.22_01 DEV (PLICEASE on 2020-05-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.21_01/lib/FFI/Platypus.pm" >1.21_01 DEV (PLICEASE on 2020-04-30)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.20_01/lib/FFI/Platypus.pm" >1.20_01 DEV (PLICEASE on 2020-04-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.19_01/lib/FFI/Platypus.pm" >1.19_01 DEV (PLICEASE on 2020-04-27)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.18_01/lib/FFI/Platypus.pm" >1.18_01 DEV (PLICEASE on 2020-04-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.17_01/lib/FFI/Platypus.pm" >1.17_01 DEV (PLICEASE on 2020-04-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.16_01/lib/FFI/Platypus.pm" >1.16_01 DEV (PLICEASE on 2020-04-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.15_01/lib/FFI/Platypus.pm" >1.15_01 DEV (PLICEASE on 2020-04-17)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.14_01/lib/FFI/Platypus.pm" >1.14_01 DEV (PLICEASE on 2020-04-17)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.12_01/lib/FFI/Platypus.pm" >1.12_01 DEV (PLICEASE on 2020-04-17)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.11/lib/FFI/Platypus.pm" >1.11 (PLICEASE on 2020-04-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.10/lib/FFI/Platypus.pm" >1.10 (PLICEASE on 2020-02-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.09/lib/FFI/Platypus.pm" >1.09 (PLICEASE on 2020-01-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.08_01/lib/FFI/Platypus.pm" >1.08_01 DEV (PLICEASE on 2020-01-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.07/lib/FFI/Platypus.pm" >1.07 (PLICEASE on 2019-12-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.06/lib/FFI/Platypus.pm" >1.06 (PLICEASE on 2019-12-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.05/lib/FFI/Platypus.pm" >1.05 (PLICEASE on 2019-12-13)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.04_01/lib/FFI/Platypus.pm" >1.04_01 DEV (PLICEASE on 2019-12-13)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.03_01/lib/FFI/Platypus.pm" >1.03_01 DEV (PLICEASE on 2019-12-12)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.02/lib/FFI/Platypus.pm" >1.02 (PLICEASE on 2019-12-09)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.01/lib/FFI/Platypus.pm" >1.01 (PLICEASE on 2019-11-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-1.00/lib/FFI/Platypus.pm" >1.00 (PLICEASE on 2019-11-15)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.99_06/lib/FFI/Platypus.pm" >0.99_06 DEV (PLICEASE on 2019-11-13)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.99_05/lib/FFI/Platypus.pm" >0.99_05 DEV (PLICEASE on 2019-10-31)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.99_04/lib/FFI/Platypus.pm" >0.99_04 DEV (PLICEASE on 2019-10-25)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.99_03/lib/FFI/Platypus.pm" >0.99_03 DEV (PLICEASE on 2019-10-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.99_02/lib/FFI/Platypus.pm" >0.99_02 DEV (PLICEASE on 2019-10-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.99_01/lib/FFI/Platypus.pm" >0.99_01 DEV (PLICEASE on 2019-10-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.98/lib/FFI/Platypus.pm" >0.98 (PLICEASE on 2019-10-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.97_05/lib/FFI/Platypus.pm" >0.97_05 DEV (PLICEASE on 2019-10-12)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.97_04/lib/FFI/Platypus.pm" >0.97_04 DEV (PLICEASE on 2019-10-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.97_03/lib/FFI/Platypus.pm" >0.97_03 DEV (PLICEASE on 2019-09-26)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.97_02/lib/FFI/Platypus.pm" >0.97_02 DEV (PLICEASE on 2019-09-20)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.97_01/lib/FFI/Platypus.pm" >0.97_01 DEV (PLICEASE on 2019-09-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.96/lib/FFI/Platypus.pm" >0.96 (PLICEASE on 2019-08-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_11/lib/FFI/Platypus.pm" >0.95_11 DEV (PLICEASE on 2019-08-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_10/lib/FFI/Platypus.pm" >0.95_10 DEV (PLICEASE on 2019-08-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_09/lib/FFI/Platypus.pm" >0.95_09 DEV (PLICEASE on 2019-08-15)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_08/lib/FFI/Platypus.pm" >0.95_08 DEV (PLICEASE on 2019-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_07/lib/FFI/Platypus.pm" >0.95_07 DEV (PLICEASE on 2019-08-13)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_06/lib/FFI/Platypus.pm" >0.95_06 DEV (PLICEASE on 2019-08-03)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_05/lib/FFI/Platypus.pm" >0.95_05 DEV (PLICEASE on 2019-08-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_04/lib/FFI/Platypus.pm" >0.95_04 DEV (PLICEASE on 2019-08-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_03/lib/FFI/Platypus.pm" >0.95_03 DEV (PLICEASE on 2019-07-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_02/lib/FFI/Platypus.pm" >0.95_02 DEV (PLICEASE on 2019-07-25)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.95_01/lib/FFI/Platypus.pm" >0.95_01 DEV (PLICEASE on 2019-07-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.94/lib/FFI/Platypus.pm" >0.94 (PLICEASE on 2019-07-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.93_03/lib/FFI/Platypus.pm" >0.93_03 DEV (PLICEASE on 2019-07-22)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.93_02/lib/FFI/Platypus.pm" >0.93_02 DEV (PLICEASE on 2019-07-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.93_01/lib/FFI/Platypus.pm" >0.93_01 DEV (PLICEASE on 2019-07-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.92/lib/FFI/Platypus.pm" >0.92 (PLICEASE on 2019-07-17)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.91_02/lib/FFI/Platypus.pm" >0.91_02 DEV (PLICEASE on 2019-07-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.91_01/lib/FFI/Platypus.pm" >0.91_01 DEV (PLICEASE on 2019-07-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.90/lib/FFI/Platypus.pm" >0.90 (PLICEASE on 2019-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.89_01/lib/FFI/Platypus.pm" >0.89_01 DEV (PLICEASE on 2019-06-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.88/lib/FFI/Platypus.pm" >0.88 (PLICEASE on 2019-06-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.87/lib/FFI/Platypus.pm" >0.87 (PLICEASE on 2019-04-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.86/lib/FFI/Platypus.pm" >0.86 (PLICEASE on 2019-03-02)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.85_01/lib/FFI/Platypus.pm" >0.85_01 DEV (PLICEASE on 2019-03-02)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.84/lib/FFI/Platypus.pm" >0.84 (PLICEASE on 2019-02-15)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.83/lib/FFI/Platypus.pm" >0.83 (PLICEASE on 2019-02-12)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.82/lib/FFI/Platypus.pm" >0.82 (PLICEASE on 2019-02-10)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.81_04/lib/FFI/Platypus.pm" >0.81_04 DEV (PLICEASE on 2019-02-08)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.81_03/lib/FFI/Platypus.pm" >0.81_03 DEV (PLICEASE on 2019-02-08)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.81_02/lib/FFI/Platypus.pm" >0.81_02 DEV (PLICEASE on 2019-02-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.81_01/lib/FFI/Platypus.pm" >0.81_01 DEV (PLICEASE on 2019-02-04)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.80/lib/FFI/Platypus.pm" >0.80 (PLICEASE on 2019-02-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.79/lib/FFI/Platypus.pm" >0.79 (PLICEASE on 2019-02-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.78/lib/FFI/Platypus.pm" >0.78 (PLICEASE on 2019-01-30)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.77_03/lib/FFI/Platypus.pm" >0.77_03 DEV (PLICEASE on 2019-01-30)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.77_02/lib/FFI/Platypus.pm" >0.77_02 DEV (PLICEASE on 2019-01-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.77_01/lib/FFI/Platypus.pm" >0.77_01 DEV (PLICEASE on 2019-01-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.76_02/lib/FFI/Platypus.pm" >0.76_02 DEV (PLICEASE on 2019-01-21)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.76_01/lib/FFI/Platypus.pm" >0.76_01 DEV (PLICEASE on 2019-01-21)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.75_01/lib/FFI/Platypus.pm" >0.75_01 DEV (PLICEASE on 2019-01-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.74/lib/FFI/Platypus.pm" >0.74 (PLICEASE on 2019-01-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.73_01/lib/FFI/Platypus.pm" >0.73_01 DEV (PLICEASE on 2019-01-13)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.72_01/lib/FFI/Platypus.pm" >0.72_01 DEV (PLICEASE on 2019-01-12)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.71_01/lib/FFI/Platypus.pm" >0.71_01 DEV (PLICEASE on 2019-01-11)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.70_01/lib/FFI/Platypus.pm" >0.70_01 DEV (PLICEASE on 2019-01-10)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.69_01/lib/FFI/Platypus.pm" >0.69_01 DEV (PLICEASE on 2019-01-09)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.68_01/lib/FFI/Platypus.pm" >0.68_01 DEV (PLICEASE on 2019-01-06)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.67_01/lib/FFI/Platypus.pm" >0.67_01 DEV (PLICEASE on 2019-01-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.66_01/lib/FFI/Platypus.pm" >0.66_01 DEV (PLICEASE on 2019-01-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.65_01/lib/FFI/Platypus.pm" >0.65_01 DEV (PLICEASE on 2019-01-04)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.64_01/lib/FFI/Platypus.pm" >0.64_01 DEV (PLICEASE on 2019-01-03)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.63_01/lib/FFI/Platypus.pm" >0.63_01 DEV (PLICEASE on 2019-01-02)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.62_01/lib/FFI/Platypus.pm" >0.62_01 DEV (PLICEASE on 2019-01-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.61_01/lib/FFI/Platypus.pm" >0.61_01 DEV (PLICEASE on 2019-01-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.60_01/lib/FFI/Platypus.pm" >0.60_01 DEV (PLICEASE on 2018-12-30)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.59/lib/FFI/Platypus.pm" >0.59 (PLICEASE on 2018-12-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.58/lib/FFI/Platypus.pm" >0.58 (PLICEASE on 2018-11-20)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.57_01/lib/FFI/Platypus.pm" >0.57_01 DEV (PLICEASE on 2018-11-04)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.56/lib/FFI/Platypus.pm" >0.56 (PLICEASE on 2018-09-03)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.55/lib/FFI/Platypus.pm" >0.55 (PLICEASE on 2018-08-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.54_03/lib/FFI/Platypus.pm" >0.54_03 DEV (PLICEASE on 2018-08-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.54_02/lib/FFI/Platypus.pm" >0.54_02 DEV (PLICEASE on 2018-08-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.54_01/lib/FFI/Platypus.pm" >0.54_01 DEV (PLICEASE on 2018-08-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.53/lib/FFI/Platypus.pm" >0.53 (PLICEASE on 2018-08-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.52_04/lib/FFI/Platypus.pm" >0.52_04 DEV (PLICEASE on 2018-08-15)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.52_03/lib/FFI/Platypus.pm" >0.52_03 DEV (PLICEASE on 2018-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.52_02/lib/FFI/Platypus.pm" >0.52_02 DEV (PLICEASE on 2018-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.52_01/lib/FFI/Platypus.pm" >0.52_01 DEV (PLICEASE on 2018-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.51/lib/FFI/Platypus.pm" >0.51 (PLICEASE on 2018-08-09)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.50/lib/FFI/Platypus.pm" >0.50 (PLICEASE on 2018-06-01)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.49_05/lib/FFI/Platypus.pm" >0.49_05 DEV (PLICEASE on 2018-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.49_04/lib/FFI/Platypus.pm" >0.49_04 DEV (PLICEASE on 2018-05-27)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.49_03/lib/FFI/Platypus.pm" >0.49_03 DEV (PLICEASE on 2018-05-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.49_02/lib/FFI/Platypus.pm" >0.49_02 DEV (PLICEASE on 2018-05-19)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.49_01/lib/FFI/Platypus.pm" >0.49_01 DEV (PLICEASE on 2018-05-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.48/lib/FFI/Platypus.pm" >0.48 (PLICEASE on 2018-02-20)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.47/lib/FFI/Platypus.pm" >0.47 (PLICEASE on 2017-03-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.46/lib/FFI/Platypus.pm" >0.46 (PLICEASE on 2017-03-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.45/lib/FFI/Platypus.pm" >0.45 (PLICEASE on 2016-10-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.44/lib/FFI/Platypus.pm" >0.44 (PLICEASE on 2016-10-20)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.43/lib/FFI/Platypus.pm" >0.43 (PLICEASE on 2016-07-08)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.42_01/lib/FFI/Platypus.pm" >0.42_01 DEV (PLICEASE on 2016-07-06)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.42/lib/FFI/Platypus.pm" >0.42 (PLICEASE on 2016-05-06)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.41/lib/FFI/Platypus.pm" >0.41 (PLICEASE on 2016-04-09)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.40/lib/FFI/Platypus.pm" >0.40 (PLICEASE on 2015-08-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.37_04-TRIAL/lib/FFI/Platypus.pm" >0.37_04-TRIAL DEV (PLICEASE on 2015-08-07)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.37_03-TRIAL/lib/FFI/Platypus.pm" >0.37_03-TRIAL DEV (PLICEASE on 2015-08-07)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.37_02-TRIAL/lib/FFI/Platypus.pm" >0.37_02-TRIAL DEV (PLICEASE on 2015-07-15)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.37_01-TRIAL/lib/FFI/Platypus.pm" >0.37_01-TRIAL DEV (PLICEASE on 2015-07-15)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.37/lib/FFI/Platypus.pm" >0.37 (PLICEASE on 2015-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.36/lib/FFI/Platypus.pm" >0.36 (PLICEASE on 2015-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.35/lib/FFI/Platypus.pm" >0.35 (PLICEASE on 2015-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.34/lib/FFI/Platypus.pm" >0.34 (PLICEASE on 2015-05-07)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.33/lib/FFI/Platypus.pm" >0.33 (PLICEASE on 2015-03-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.32/lib/FFI/Platypus.pm" >0.32 (PLICEASE on 2015-03-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.31/lib/FFI/Platypus.pm" >0.31 (PLICEASE on 2015-02-26)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.30/lib/FFI/Platypus.pm" >0.30 (PLICEASE on 2015-02-25)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.29/lib/FFI/Platypus.pm" >0.29 (PLICEASE on 2015-02-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.28/lib/FFI/Platypus.pm" >0.28 (PLICEASE on 2015-02-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.27/lib/FFI/Platypus.pm" >0.27 (PLICEASE on 2015-02-22)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.26/lib/FFI/Platypus.pm" >0.26 (PLICEASE on 2015-02-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.25/lib/FFI/Platypus.pm" >0.25 (PLICEASE on 2015-02-17)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.24/lib/FFI/Platypus.pm" >0.24 (PLICEASE on 2015-02-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.23/lib/FFI/Platypus.pm" >0.23 (PLICEASE on 2015-02-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.22/lib/FFI/Platypus.pm" >0.22 (PLICEASE on 2015-02-12)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.21/lib/FFI/Platypus.pm" >0.21 (PLICEASE on 2015-02-09)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.20/lib/FFI/Platypus.pm" >0.20 (PLICEASE on 2015-02-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.19/lib/FFI/Platypus.pm" >0.19 (PLICEASE on 2015-02-03)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.18/lib/FFI/Platypus.pm" >0.18 (PLICEASE on 2015-01-30)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.17/lib/FFI/Platypus.pm" >0.17 (PLICEASE on 2015-01-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.16/lib/FFI/Platypus.pm" >0.16 (PLICEASE on 2015-01-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.15/lib/FFI/Platypus.pm" >0.15 (PLICEASE on 2015-01-23)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.14/lib/FFI/Platypus.pm" >0.14 (PLICEASE on 2015-01-22)</option> <option value="/release/PLICEASE/FFI-Platypus-2.10/diff/PLICEASE/FFI-Platypus-0.12/lib/FFI/Platypus.pm" >0.12 (PLICEASE on 2015-01-22)</option> </optgroup> </select> </li> <li> <ul class="dependencies"> <li class="nav-header">Dependencies</li> <li><a href="/pod/Capture::Tiny" title="Capture::Tiny" class="ellipsis">Capture::Tiny</a></li> <li><a href="/pod/ExtUtils::MakeMaker" title="ExtUtils::MakeMaker" class="ellipsis">ExtUtils::MakeMaker</a></li> <li><a href="/pod/FFI::CheckLib" title="FFI::CheckLib" class="ellipsis">FFI::CheckLib</a></li> <li><a href="/pod/File::Spec::Functions" title="File::Spec::Functions" class="ellipsis">File::Spec::Functions</a></li> <li><a href="/pod/IPC::Cmd" title="IPC::Cmd" class="ellipsis">IPC::Cmd</a></li> <li><a href="/pod/JSON::PP" title="JSON::PP" class="ellipsis">JSON::PP</a></li> <li><a href="/pod/List::Util" title="List::Util" class="ellipsis">List::Util</a></li> <li><a href="/pod/autodie" title="autodie" class="ellipsis">autodie</a></li> <li><a href="/pod/constant" title="constant" class="ellipsis">constant</a></li> <li><a href="/pod/parent" title="parent" class="ellipsis">parent</a></li> <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li> <li> <hr> </li> <li> <a href="/module/FFI::Platypus/requires">Reverse dependencies</a> </li> <li> <a href="http://deps.cpantesters.org/?module=FFI%3A%3APlatypus">CPAN Testers List</a> </li> <li> <a href="https://cpandeps.grinnz.com/?dist=FFI-Platypus">Dependency graph</a> </li> </ul> </li> <li class="nav-header">Permalinks</li> <li> <a href="/release/PLICEASE/FFI-Platypus-2.10/view/lib/FFI/Platypus.pm">This version</a> </li> <li> <a href="/pod/FFI::Platypus">Latest version</a> </li> <li> <div class="plussers"> <div class="nav-header">++ed by:</div> <div> <a class="display-all" href="/author/XYF"><img src="https://www.gravatar.com/avatar/468b93184448908572ef5dc5c0924e76?d=identicon&amp;s=20" title="XYF" alt="XYF"></a> <a class="display-all" href="/author/PABLROD"><img src="https://www.gravatar.com/avatar/ebde00b92598043f6cf8d9071e7d5c2b?d=identicon&amp;s=20" title="PABLROD" alt="PABLROD"></a> <a class="display-all" href="/author/CAMSPI"><img src="https://www.gravatar.com/avatar/e26b9be142a619cdd35dca33ae320d26?d=identicon&amp;s=20" title="CAMSPI" alt="CAMSPI"></a> <a class="display-all" href="/author/JERRYV"><img src="https://www.gravatar.com/avatar/8658c323ff89ef14620ce0e635c6fc9f?d=identicon&amp;s=20" title="JERRYV" alt="JERRYV"></a> <a class="display-all" href="/author/MHOWARD"><img src="https://www.gravatar.com/avatar/23ac2fbc91ec185f5da16627eb556667?d=identicon&amp;s=20" title="MHOWARD" alt="MHOWARD"></a> </div> <!-- Display counts of plussers--> <div> <a href="/dist/FFI-Platypus/plussers">44 PAUSE users</a> </div> <div> 23 non-PAUSE users </div> </div> </li> <li> <div> <button class="contributors-show-button btn-link">and 20 contributors</button> <div id="metacpan_contributors" class="slide-out slide-out-hidden"> <div> <ul> <li class="contributor" > Bakkiaraj Murugesan (bakkiaraj) </li> <li class="contributor" > Damyan Ivanov </li> <li class="contributor" > Diab Jerius (DJERIUS) </li> <li class="contributor" > Dylan Cali (calid) </li> <li class="contributor" > Eric Brine (IKEGAMI) </li> <li class="contributor" > Fitz Elliott (felliott) </li> <li class="contributor" > Gregor Herrmann (gregoa) </li> <li class="contributor" > Håkon Hægland (hakonhagland, HAKONH) </li> <li class="contributor" > Ilya Pavlov (Ilya33) </li> <li class="contributor" > José Joaquín Atria (JJATRIA) </li> <li class="contributor" > Lukas Mai (MAUKE) </li> <li class="contributor" > Meredith (merrilymeredith, MHOWARD) </li> <li class="contributor" > Mohammad S Anwar (MANWAR) </li> <li class="contributor" > Pete Houston (openstrike, HOUSTON) </li> <li class="contributor" > Petr Písař (ppisar) </li> <li class="contributor" > pipcet </li> <li class="contributor" > Shlomi Fish (shlomif) </li> <li class="contributor" > szTheory </li> <li class="contributor" > Vickenty Fesunov (vyf) </li> <li class="contributor" > Zaki Mughal (zmughal) </li> </ul> </div> </div> </div> </li> </ul> </div> </nav> <div class="content-navigation"> <div class="breadcrumbs"> <span> <a data-keyboard-shortcut="g a" rel="author" href="/author/PLICEASE" class="author-name">Graham Ollis 🔥🐉</a> </span> <span>&nbsp;/&nbsp;</span> <div class="release dist-release status-latest maturity-released"> <span class="dropdown"><b class="caret"></b></span> <select class="select-navigator "> <option selected value="/release/PLICEASE/FFI-Platypus-2.10/view/lib/FFI/Platypus.pm" >2.10 (PLICEASE on 2024-12-18)</option> <option value="/release/PLICEASE/FFI-Platypus-2.09/view/lib/FFI/Platypus.pm" >2.09 (PLICEASE on 2024-08-19)</option> <optgroup label="BackPAN">' <option value="/release/PLICEASE/FFI-Platypus-2.08/view/lib/FFI/Platypus.pm" >2.08 (PLICEASE on 2023-05-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.07/view/lib/FFI/Platypus.pm" >2.07 (PLICEASE on 2023-03-14)</option> <option value="/release/PLICEASE/FFI-Platypus-2.06_01/view/lib/FFI/Platypus.pm" >2.06_01 DEV (PLICEASE on 2023-02-27)</option> <option value="/release/PLICEASE/FFI-Platypus-2.05/view/lib/FFI/Platypus.pm" >2.05 (PLICEASE on 2022-11-16)</option> <option value="/release/PLICEASE/FFI-Platypus-2.04/view/lib/FFI/Platypus.pm" >2.04 (PLICEASE on 2022-11-05)</option> <option value="/release/PLICEASE/FFI-Platypus-2.03/view/lib/FFI/Platypus.pm" >2.03 (PLICEASE on 2022-10-28)</option> <option value="/release/PLICEASE/FFI-Platypus-2.02/view/lib/FFI/Platypus.pm" >2.02 (PLICEASE on 2022-10-24)</option> <option value="/release/PLICEASE/FFI-Platypus-2.01/view/lib/FFI/Platypus.pm" >2.01 (PLICEASE on 2022-08-30)</option> <option value="/release/PLICEASE/FFI-Platypus-2.00/view/lib/FFI/Platypus.pm" >2.00 (PLICEASE on 2022-08-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.91_01/view/lib/FFI/Platypus.pm" >1.91_01 DEV (PLICEASE on 2022-07-05)</option> <option value="/release/PLICEASE/FFI-Platypus-1.90_02/view/lib/FFI/Platypus.pm" >1.90_02 DEV (PLICEASE on 2022-06-27)</option> <option value="/release/PLICEASE/FFI-Platypus-1.90_01/view/lib/FFI/Platypus.pm" >1.90_01 DEV (PLICEASE on 2022-06-24)</option> <option value="/release/PLICEASE/FFI-Platypus-1.61_01/view/lib/FFI/Platypus.pm" >1.61_01 DEV (PLICEASE on 2022-06-23)</option> <option value="/release/PLICEASE/FFI-Platypus-1.60_01/view/lib/FFI/Platypus.pm" >1.60_01 DEV (PLICEASE on 2022-06-23)</option> <option value="/release/PLICEASE/FFI-Platypus-1.59_01/view/lib/FFI/Platypus.pm" >1.59_01 DEV (PLICEASE on 2022-06-19)</option> <option value="/release/PLICEASE/FFI-Platypus-1.58/view/lib/FFI/Platypus.pm" >1.58 (PLICEASE on 2022-06-19)</option> <option value="/release/PLICEASE/FFI-Platypus-1.57/view/lib/FFI/Platypus.pm" >1.57 (PLICEASE on 2022-06-16)</option> <option value="/release/PLICEASE/FFI-Platypus-1.56/view/lib/FFI/Platypus.pm" >1.56 (PLICEASE on 2021-10-28)</option> <option value="/release/PLICEASE/FFI-Platypus-1.55/view/lib/FFI/Platypus.pm" >1.55 (PLICEASE on 2021-07-29)</option> <option value="/release/PLICEASE/FFI-Platypus-1.54_01/view/lib/FFI/Platypus.pm" >1.54_01 DEV (PLICEASE on 2021-07-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.53/view/lib/FFI/Platypus.pm" >1.53 (PLICEASE on 2021-07-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.52/view/lib/FFI/Platypus.pm" >1.52 (PLICEASE on 2021-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.51/view/lib/FFI/Platypus.pm" >1.51 (PLICEASE on 2021-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.50/view/lib/FFI/Platypus.pm" >1.50 (PLICEASE on 2021-06-30)</option> <option value="/release/PLICEASE/FFI-Platypus-1.49_01/view/lib/FFI/Platypus.pm" >1.49_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.48_01/view/lib/FFI/Platypus.pm" >1.48_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.47_01/view/lib/FFI/Platypus.pm" >1.47_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.46/view/lib/FFI/Platypus.pm" >1.46 (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.45_01/view/lib/FFI/Platypus.pm" >1.45_01 DEV (PLICEASE on 2021-06-22)</option> <option value="/release/PLICEASE/FFI-Platypus-1.44/view/lib/FFI/Platypus.pm" >1.44 (PLICEASE on 2021-06-20)</option> <option value="/release/PLICEASE/FFI-Platypus-1.43/view/lib/FFI/Platypus.pm" >1.43 (PLICEASE on 2021-03-17)</option> <option value="/release/PLICEASE/FFI-Platypus-1.42/view/lib/FFI/Platypus.pm" >1.42 (PLICEASE on 2021-03-15)</option> <option value="/release/PLICEASE/FFI-Platypus-1.41_01/view/lib/FFI/Platypus.pm" >1.41_01 DEV (PLICEASE on 2021-03-14)</option> <option value="/release/PLICEASE/FFI-Platypus-1.40_01/view/lib/FFI/Platypus.pm" >1.40_01 DEV (PLICEASE on 2021-03-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.39_01/view/lib/FFI/Platypus.pm" >1.39_01 DEV (PLICEASE on 2021-03-10)</option> <option value="/release/PLICEASE/FFI-Platypus-1.38/view/lib/FFI/Platypus.pm" >1.38 (PLICEASE on 2021-03-09)</option> <option value="/release/PLICEASE/FFI-Platypus-1.37_01/view/lib/FFI/Platypus.pm" >1.37_01 DEV (PLICEASE on 2021-03-06)</option> <option value="/release/PLICEASE/FFI-Platypus-1.36_01/view/lib/FFI/Platypus.pm" >1.36_01 DEV (PLICEASE on 2021-03-03)</option> <option value="/release/PLICEASE/FFI-Platypus-1.35_01/view/lib/FFI/Platypus.pm" >1.35_01 DEV (PLICEASE on 2021-03-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.34/view/lib/FFI/Platypus.pm" >1.34 (PLICEASE on 2020-10-23)</option> <option value="/release/PLICEASE/FFI-Platypus-1.33/view/lib/FFI/Platypus.pm" >1.33 (PLICEASE on 2020-09-28)</option> <option value="/release/PLICEASE/FFI-Platypus-1.32/view/lib/FFI/Platypus.pm" >1.32 (PLICEASE on 2020-09-21)</option> <option value="/release/PLICEASE/FFI-Platypus-1.31/view/lib/FFI/Platypus.pm" >1.31 (PLICEASE on 2020-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.30/view/lib/FFI/Platypus.pm" >1.30 (PLICEASE on 2020-06-16)</option> <option value="/release/PLICEASE/FFI-Platypus-1.29/view/lib/FFI/Platypus.pm" >1.29 (PLICEASE on 2020-06-06)</option> <option value="/release/PLICEASE/FFI-Platypus-1.28/view/lib/FFI/Platypus.pm" >1.28 (PLICEASE on 2020-05-20)</option> <option value="/release/PLICEASE/FFI-Platypus-1.27_01/view/lib/FFI/Platypus.pm" >1.27_01 DEV (PLICEASE on 2020-05-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.26/view/lib/FFI/Platypus.pm" >1.26 (PLICEASE on 2020-05-07)</option> <option value="/release/PLICEASE/FFI-Platypus-1.25/view/lib/FFI/Platypus.pm" >1.25 (PLICEASE on 2020-05-06)</option> <option value="/release/PLICEASE/FFI-Platypus-1.24/view/lib/FFI/Platypus.pm" >1.24 (PLICEASE on 2020-05-02)</option> <option value="/release/PLICEASE/FFI-Platypus-1.23_01/view/lib/FFI/Platypus.pm" >1.23_01 DEV (PLICEASE on 2020-05-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.22_01/view/lib/FFI/Platypus.pm" >1.22_01 DEV (PLICEASE on 2020-05-01)</option> <option value="/release/PLICEASE/FFI-Platypus-1.21_01/view/lib/FFI/Platypus.pm" >1.21_01 DEV (PLICEASE on 2020-04-30)</option> <option value="/release/PLICEASE/FFI-Platypus-1.20_01/view/lib/FFI/Platypus.pm" >1.20_01 DEV (PLICEASE on 2020-04-29)</option> <option value="/release/PLICEASE/FFI-Platypus-1.19_01/view/lib/FFI/Platypus.pm" >1.19_01 DEV (PLICEASE on 2020-04-27)</option> <option value="/release/PLICEASE/FFI-Platypus-1.18_01/view/lib/FFI/Platypus.pm" >1.18_01 DEV (PLICEASE on 2020-04-19)</option> <option value="/release/PLICEASE/FFI-Platypus-1.17_01/view/lib/FFI/Platypus.pm" >1.17_01 DEV (PLICEASE on 2020-04-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.16_01/view/lib/FFI/Platypus.pm" >1.16_01 DEV (PLICEASE on 2020-04-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.15_01/view/lib/FFI/Platypus.pm" >1.15_01 DEV (PLICEASE on 2020-04-17)</option> <option value="/release/PLICEASE/FFI-Platypus-1.14_01/view/lib/FFI/Platypus.pm" >1.14_01 DEV (PLICEASE on 2020-04-17)</option> <option value="/release/PLICEASE/FFI-Platypus-1.12_01/view/lib/FFI/Platypus.pm" >1.12_01 DEV (PLICEASE on 2020-04-17)</option> <option value="/release/PLICEASE/FFI-Platypus-1.11/view/lib/FFI/Platypus.pm" >1.11 (PLICEASE on 2020-04-16)</option> <option value="/release/PLICEASE/FFI-Platypus-1.10/view/lib/FFI/Platypus.pm" >1.10 (PLICEASE on 2020-02-05)</option> <option value="/release/PLICEASE/FFI-Platypus-1.09/view/lib/FFI/Platypus.pm" >1.09 (PLICEASE on 2020-01-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.08_01/view/lib/FFI/Platypus.pm" >1.08_01 DEV (PLICEASE on 2020-01-18)</option> <option value="/release/PLICEASE/FFI-Platypus-1.07/view/lib/FFI/Platypus.pm" >1.07 (PLICEASE on 2019-12-28)</option> <option value="/release/PLICEASE/FFI-Platypus-1.06/view/lib/FFI/Platypus.pm" >1.06 (PLICEASE on 2019-12-14)</option> <option value="/release/PLICEASE/FFI-Platypus-1.05/view/lib/FFI/Platypus.pm" >1.05 (PLICEASE on 2019-12-13)</option> <option value="/release/PLICEASE/FFI-Platypus-1.04_01/view/lib/FFI/Platypus.pm" >1.04_01 DEV (PLICEASE on 2019-12-13)</option> <option value="/release/PLICEASE/FFI-Platypus-1.03_01/view/lib/FFI/Platypus.pm" >1.03_01 DEV (PLICEASE on 2019-12-12)</option> <option value="/release/PLICEASE/FFI-Platypus-1.02/view/lib/FFI/Platypus.pm" >1.02 (PLICEASE on 2019-12-09)</option> <option value="/release/PLICEASE/FFI-Platypus-1.01/view/lib/FFI/Platypus.pm" >1.01 (PLICEASE on 2019-11-16)</option> <option value="/release/PLICEASE/FFI-Platypus-1.00/view/lib/FFI/Platypus.pm" >1.00 (PLICEASE on 2019-11-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_06/view/lib/FFI/Platypus.pm" >0.99_06 DEV (PLICEASE on 2019-11-13)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_05/view/lib/FFI/Platypus.pm" >0.99_05 DEV (PLICEASE on 2019-10-31)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_04/view/lib/FFI/Platypus.pm" >0.99_04 DEV (PLICEASE on 2019-10-25)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_03/view/lib/FFI/Platypus.pm" >0.99_03 DEV (PLICEASE on 2019-10-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_02/view/lib/FFI/Platypus.pm" >0.99_02 DEV (PLICEASE on 2019-10-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.99_01/view/lib/FFI/Platypus.pm" >0.99_01 DEV (PLICEASE on 2019-10-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.98/view/lib/FFI/Platypus.pm" >0.98 (PLICEASE on 2019-10-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_05/view/lib/FFI/Platypus.pm" >0.97_05 DEV (PLICEASE on 2019-10-12)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_04/view/lib/FFI/Platypus.pm" >0.97_04 DEV (PLICEASE on 2019-10-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_03/view/lib/FFI/Platypus.pm" >0.97_03 DEV (PLICEASE on 2019-09-26)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_02/view/lib/FFI/Platypus.pm" >0.97_02 DEV (PLICEASE on 2019-09-20)</option> <option value="/release/PLICEASE/FFI-Platypus-0.97_01/view/lib/FFI/Platypus.pm" >0.97_01 DEV (PLICEASE on 2019-09-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.96/view/lib/FFI/Platypus.pm" >0.96 (PLICEASE on 2019-08-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_11/view/lib/FFI/Platypus.pm" >0.95_11 DEV (PLICEASE on 2019-08-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_10/view/lib/FFI/Platypus.pm" >0.95_10 DEV (PLICEASE on 2019-08-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_09/view/lib/FFI/Platypus.pm" >0.95_09 DEV (PLICEASE on 2019-08-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_08/view/lib/FFI/Platypus.pm" >0.95_08 DEV (PLICEASE on 2019-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_07/view/lib/FFI/Platypus.pm" >0.95_07 DEV (PLICEASE on 2019-08-13)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_06/view/lib/FFI/Platypus.pm" >0.95_06 DEV (PLICEASE on 2019-08-03)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_05/view/lib/FFI/Platypus.pm" >0.95_05 DEV (PLICEASE on 2019-08-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_04/view/lib/FFI/Platypus.pm" >0.95_04 DEV (PLICEASE on 2019-08-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_03/view/lib/FFI/Platypus.pm" >0.95_03 DEV (PLICEASE on 2019-07-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_02/view/lib/FFI/Platypus.pm" >0.95_02 DEV (PLICEASE on 2019-07-25)</option> <option value="/release/PLICEASE/FFI-Platypus-0.95_01/view/lib/FFI/Platypus.pm" >0.95_01 DEV (PLICEASE on 2019-07-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.94/view/lib/FFI/Platypus.pm" >0.94 (PLICEASE on 2019-07-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.93_03/view/lib/FFI/Platypus.pm" >0.93_03 DEV (PLICEASE on 2019-07-22)</option> <option value="/release/PLICEASE/FFI-Platypus-0.93_02/view/lib/FFI/Platypus.pm" >0.93_02 DEV (PLICEASE on 2019-07-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.93_01/view/lib/FFI/Platypus.pm" >0.93_01 DEV (PLICEASE on 2019-07-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.92/view/lib/FFI/Platypus.pm" >0.92 (PLICEASE on 2019-07-17)</option> <option value="/release/PLICEASE/FFI-Platypus-0.91_02/view/lib/FFI/Platypus.pm" >0.91_02 DEV (PLICEASE on 2019-07-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.91_01/view/lib/FFI/Platypus.pm" >0.91_01 DEV (PLICEASE on 2019-07-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.90/view/lib/FFI/Platypus.pm" >0.90 (PLICEASE on 2019-07-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.89_01/view/lib/FFI/Platypus.pm" >0.89_01 DEV (PLICEASE on 2019-06-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.88/view/lib/FFI/Platypus.pm" >0.88 (PLICEASE on 2019-06-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.87/view/lib/FFI/Platypus.pm" >0.87 (PLICEASE on 2019-04-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.86/view/lib/FFI/Platypus.pm" >0.86 (PLICEASE on 2019-03-02)</option> <option value="/release/PLICEASE/FFI-Platypus-0.85_01/view/lib/FFI/Platypus.pm" >0.85_01 DEV (PLICEASE on 2019-03-02)</option> <option value="/release/PLICEASE/FFI-Platypus-0.84/view/lib/FFI/Platypus.pm" >0.84 (PLICEASE on 2019-02-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.83/view/lib/FFI/Platypus.pm" >0.83 (PLICEASE on 2019-02-12)</option> <option value="/release/PLICEASE/FFI-Platypus-0.82/view/lib/FFI/Platypus.pm" >0.82 (PLICEASE on 2019-02-10)</option> <option value="/release/PLICEASE/FFI-Platypus-0.81_04/view/lib/FFI/Platypus.pm" >0.81_04 DEV (PLICEASE on 2019-02-08)</option> <option value="/release/PLICEASE/FFI-Platypus-0.81_03/view/lib/FFI/Platypus.pm" >0.81_03 DEV (PLICEASE on 2019-02-08)</option> <option value="/release/PLICEASE/FFI-Platypus-0.81_02/view/lib/FFI/Platypus.pm" >0.81_02 DEV (PLICEASE on 2019-02-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.81_01/view/lib/FFI/Platypus.pm" >0.81_01 DEV (PLICEASE on 2019-02-04)</option> <option value="/release/PLICEASE/FFI-Platypus-0.80/view/lib/FFI/Platypus.pm" >0.80 (PLICEASE on 2019-02-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.79/view/lib/FFI/Platypus.pm" >0.79 (PLICEASE on 2019-02-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.78/view/lib/FFI/Platypus.pm" >0.78 (PLICEASE on 2019-01-30)</option> <option value="/release/PLICEASE/FFI-Platypus-0.77_03/view/lib/FFI/Platypus.pm" >0.77_03 DEV (PLICEASE on 2019-01-30)</option> <option value="/release/PLICEASE/FFI-Platypus-0.77_02/view/lib/FFI/Platypus.pm" >0.77_02 DEV (PLICEASE on 2019-01-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.77_01/view/lib/FFI/Platypus.pm" >0.77_01 DEV (PLICEASE on 2019-01-28)</option> <option value="/release/PLICEASE/FFI-Platypus-0.76_02/view/lib/FFI/Platypus.pm" >0.76_02 DEV (PLICEASE on 2019-01-21)</option> <option value="/release/PLICEASE/FFI-Platypus-0.76_01/view/lib/FFI/Platypus.pm" >0.76_01 DEV (PLICEASE on 2019-01-21)</option> <option value="/release/PLICEASE/FFI-Platypus-0.75_01/view/lib/FFI/Platypus.pm" >0.75_01 DEV (PLICEASE on 2019-01-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.74/view/lib/FFI/Platypus.pm" >0.74 (PLICEASE on 2019-01-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.73_01/view/lib/FFI/Platypus.pm" >0.73_01 DEV (PLICEASE on 2019-01-13)</option> <option value="/release/PLICEASE/FFI-Platypus-0.72_01/view/lib/FFI/Platypus.pm" >0.72_01 DEV (PLICEASE on 2019-01-12)</option> <option value="/release/PLICEASE/FFI-Platypus-0.71_01/view/lib/FFI/Platypus.pm" >0.71_01 DEV (PLICEASE on 2019-01-11)</option> <option value="/release/PLICEASE/FFI-Platypus-0.70_01/view/lib/FFI/Platypus.pm" >0.70_01 DEV (PLICEASE on 2019-01-10)</option> <option value="/release/PLICEASE/FFI-Platypus-0.69_01/view/lib/FFI/Platypus.pm" >0.69_01 DEV (PLICEASE on 2019-01-09)</option> <option value="/release/PLICEASE/FFI-Platypus-0.68_01/view/lib/FFI/Platypus.pm" >0.68_01 DEV (PLICEASE on 2019-01-06)</option> <option value="/release/PLICEASE/FFI-Platypus-0.67_01/view/lib/FFI/Platypus.pm" >0.67_01 DEV (PLICEASE on 2019-01-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.66_01/view/lib/FFI/Platypus.pm" >0.66_01 DEV (PLICEASE on 2019-01-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.65_01/view/lib/FFI/Platypus.pm" >0.65_01 DEV (PLICEASE on 2019-01-04)</option> <option value="/release/PLICEASE/FFI-Platypus-0.64_01/view/lib/FFI/Platypus.pm" >0.64_01 DEV (PLICEASE on 2019-01-03)</option> <option value="/release/PLICEASE/FFI-Platypus-0.63_01/view/lib/FFI/Platypus.pm" >0.63_01 DEV (PLICEASE on 2019-01-02)</option> <option value="/release/PLICEASE/FFI-Platypus-0.62_01/view/lib/FFI/Platypus.pm" >0.62_01 DEV (PLICEASE on 2019-01-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.61_01/view/lib/FFI/Platypus.pm" >0.61_01 DEV (PLICEASE on 2019-01-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.60_01/view/lib/FFI/Platypus.pm" >0.60_01 DEV (PLICEASE on 2018-12-30)</option> <option value="/release/PLICEASE/FFI-Platypus-0.59/view/lib/FFI/Platypus.pm" >0.59 (PLICEASE on 2018-12-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.58/view/lib/FFI/Platypus.pm" >0.58 (PLICEASE on 2018-11-20)</option> <option value="/release/PLICEASE/FFI-Platypus-0.57_01/view/lib/FFI/Platypus.pm" >0.57_01 DEV (PLICEASE on 2018-11-04)</option> <option value="/release/PLICEASE/FFI-Platypus-0.56/view/lib/FFI/Platypus.pm" >0.56 (PLICEASE on 2018-09-03)</option> <option value="/release/PLICEASE/FFI-Platypus-0.55/view/lib/FFI/Platypus.pm" >0.55 (PLICEASE on 2018-08-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.54_03/view/lib/FFI/Platypus.pm" >0.54_03 DEV (PLICEASE on 2018-08-28)</option> <option value="/release/PLICEASE/FFI-Platypus-0.54_02/view/lib/FFI/Platypus.pm" >0.54_02 DEV (PLICEASE on 2018-08-28)</option> <option value="/release/PLICEASE/FFI-Platypus-0.54_01/view/lib/FFI/Platypus.pm" >0.54_01 DEV (PLICEASE on 2018-08-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.53/view/lib/FFI/Platypus.pm" >0.53 (PLICEASE on 2018-08-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.52_04/view/lib/FFI/Platypus.pm" >0.52_04 DEV (PLICEASE on 2018-08-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.52_03/view/lib/FFI/Platypus.pm" >0.52_03 DEV (PLICEASE on 2018-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.52_02/view/lib/FFI/Platypus.pm" >0.52_02 DEV (PLICEASE on 2018-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.52_01/view/lib/FFI/Platypus.pm" >0.52_01 DEV (PLICEASE on 2018-08-14)</option> <option value="/release/PLICEASE/FFI-Platypus-0.51/view/lib/FFI/Platypus.pm" >0.51 (PLICEASE on 2018-08-09)</option> <option value="/release/PLICEASE/FFI-Platypus-0.50/view/lib/FFI/Platypus.pm" >0.50 (PLICEASE on 2018-06-01)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_05/view/lib/FFI/Platypus.pm" >0.49_05 DEV (PLICEASE on 2018-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_04/view/lib/FFI/Platypus.pm" >0.49_04 DEV (PLICEASE on 2018-05-27)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_03/view/lib/FFI/Platypus.pm" >0.49_03 DEV (PLICEASE on 2018-05-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_02/view/lib/FFI/Platypus.pm" >0.49_02 DEV (PLICEASE on 2018-05-19)</option> <option value="/release/PLICEASE/FFI-Platypus-0.49_01/view/lib/FFI/Platypus.pm" >0.49_01 DEV (PLICEASE on 2018-05-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.48/view/lib/FFI/Platypus.pm" >0.48 (PLICEASE on 2018-02-20)</option> <option value="/release/PLICEASE/FFI-Platypus-0.47/view/lib/FFI/Platypus.pm" >0.47 (PLICEASE on 2017-03-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.46/view/lib/FFI/Platypus.pm" >0.46 (PLICEASE on 2017-03-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.45/view/lib/FFI/Platypus.pm" >0.45 (PLICEASE on 2016-10-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.44/view/lib/FFI/Platypus.pm" >0.44 (PLICEASE on 2016-10-20)</option> <option value="/release/PLICEASE/FFI-Platypus-0.43/view/lib/FFI/Platypus.pm" >0.43 (PLICEASE on 2016-07-08)</option> <option value="/release/PLICEASE/FFI-Platypus-0.42_01/view/lib/FFI/Platypus.pm" >0.42_01 DEV (PLICEASE on 2016-07-06)</option> <option value="/release/PLICEASE/FFI-Platypus-0.42/view/lib/FFI/Platypus.pm" >0.42 (PLICEASE on 2016-05-06)</option> <option value="/release/PLICEASE/FFI-Platypus-0.41/view/lib/FFI/Platypus.pm" >0.41 (PLICEASE on 2016-04-09)</option> <option value="/release/PLICEASE/FFI-Platypus-0.40/view/lib/FFI/Platypus.pm" >0.40 (PLICEASE on 2015-08-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37_04-TRIAL/view/lib/FFI/Platypus.pm" >0.37_04-TRIAL DEV (PLICEASE on 2015-08-07)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37_03-TRIAL/view/lib/FFI/Platypus.pm" >0.37_03-TRIAL DEV (PLICEASE on 2015-08-07)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37_02-TRIAL/view/lib/FFI/Platypus.pm" >0.37_02-TRIAL DEV (PLICEASE on 2015-07-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37_01-TRIAL/view/lib/FFI/Platypus.pm" >0.37_01-TRIAL DEV (PLICEASE on 2015-07-15)</option> <option value="/release/PLICEASE/FFI-Platypus-0.37/view/lib/FFI/Platypus.pm" >0.37 (PLICEASE on 2015-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.36/view/lib/FFI/Platypus.pm" >0.36 (PLICEASE on 2015-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.35/view/lib/FFI/Platypus.pm" >0.35 (PLICEASE on 2015-05-29)</option> <option value="/release/PLICEASE/FFI-Platypus-0.34/view/lib/FFI/Platypus.pm" >0.34 (PLICEASE on 2015-05-07)</option> <option value="/release/PLICEASE/FFI-Platypus-0.33/view/lib/FFI/Platypus.pm" >0.33 (PLICEASE on 2015-03-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.32/view/lib/FFI/Platypus.pm" >0.32 (PLICEASE on 2015-03-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.31/view/lib/FFI/Platypus.pm" >0.31 (PLICEASE on 2015-02-26)</option> <option value="/release/PLICEASE/FFI-Platypus-0.30/view/lib/FFI/Platypus.pm" >0.30 (PLICEASE on 2015-02-25)</option> <option value="/release/PLICEASE/FFI-Platypus-0.29/view/lib/FFI/Platypus.pm" >0.29 (PLICEASE on 2015-02-24)</option> <option value="/release/PLICEASE/FFI-Platypus-0.28/view/lib/FFI/Platypus.pm" >0.28 (PLICEASE on 2015-02-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.27/view/lib/FFI/Platypus.pm" >0.27 (PLICEASE on 2015-02-22)</option> <option value="/release/PLICEASE/FFI-Platypus-0.26/view/lib/FFI/Platypus.pm" >0.26 (PLICEASE on 2015-02-18)</option> <option value="/release/PLICEASE/FFI-Platypus-0.25/view/lib/FFI/Platypus.pm" >0.25 (PLICEASE on 2015-02-17)</option> <option value="/release/PLICEASE/FFI-Platypus-0.24/view/lib/FFI/Platypus.pm" >0.24 (PLICEASE on 2015-02-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.23/view/lib/FFI/Platypus.pm" >0.23 (PLICEASE on 2015-02-16)</option> <option value="/release/PLICEASE/FFI-Platypus-0.22/view/lib/FFI/Platypus.pm" >0.22 (PLICEASE on 2015-02-12)</option> <option value="/release/PLICEASE/FFI-Platypus-0.21/view/lib/FFI/Platypus.pm" >0.21 (PLICEASE on 2015-02-09)</option> <option value="/release/PLICEASE/FFI-Platypus-0.20/view/lib/FFI/Platypus.pm" >0.20 (PLICEASE on 2015-02-05)</option> <option value="/release/PLICEASE/FFI-Platypus-0.19/view/lib/FFI/Platypus.pm" >0.19 (PLICEASE on 2015-02-03)</option> <option value="/release/PLICEASE/FFI-Platypus-0.18/view/lib/FFI/Platypus.pm" >0.18 (PLICEASE on 2015-01-30)</option> <option value="/release/PLICEASE/FFI-Platypus-0.17/view/lib/FFI/Platypus.pm" >0.17 (PLICEASE on 2015-01-28)</option> <option value="/release/PLICEASE/FFI-Platypus-0.16/view/lib/FFI/Platypus.pm" >0.16 (PLICEASE on 2015-01-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.15/view/lib/FFI/Platypus.pm" >0.15 (PLICEASE on 2015-01-23)</option> <option value="/release/PLICEASE/FFI-Platypus-0.14/view/lib/FFI/Platypus.pm" >0.14 (PLICEASE on 2015-01-22)</option> <option value="/release/PLICEASE/FFI-Platypus-0.12/view/lib/FFI/Platypus.pm" >0.12 (PLICEASE on 2015-01-22)</option> </optgroup> </select> <a data-keyboard-shortcut="g d" class="release-name" href="/dist/FFI-Platypus">FFI-Platypus-2.10</a> </div> <span class="river-gauge-gauge"> <svg width="24px" height="15px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g> <title> River stage three &#10; • 78 direct dependents &#10; • 106 total dependents </title> <rect x="0" y="0" width="4" height="15" fill="#7ea3f2" /> <rect x="5" y="0" width="4" height="15" fill="#7ea3f2" /> <rect x="10" y="0" width="4" height="15" fill="#7ea3f2" /> <rect x="15" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="20" y="0" width="4" height="15" fill="#e4e2e2" /> </g> </svg> </span> <div id="FFI-Platypus-fav" class="show-logged-in"> <form action="/account/favorite/add" style="display: inline" method="POST"> <input type="hidden" name="remove" value="0"> <input type="hidden" name="release" value="FFI-Platypus-2.10"> <input type="hidden" name="author" value="PLICEASE"> <input type="hidden" name="distribution" value="FFI-Platypus"> <button type="submit" class="favorite highlight"><span>67</span> ++</button> </form> </div> <div class="show-logged-out"> <button class="fav-not-logged-in favorite highlight"><span>67</span> ++</button> </div> / <span>FFI::Platypus</span> </div> </div> <main class="content"> <nav class="toc"> <div class="toc-header"><strong>Contents</strong></div> <ul> <li><a href="#NAME">NAME</a></li> <li><a href="#VERSION">VERSION</a></li> <li><a href="#SYNOPSIS">SYNOPSIS</a></li> <li><a href="#DESCRIPTION">DESCRIPTION</a></li> <li><a href="#CONSTRUCTORS">CONSTRUCTORS</a> <ul> <li><a href="#new">new</a> <ul> <li><a href="#options">options</a></li> </ul> </li> </ul> </li> <li><a href="#ATTRIBUTES">ATTRIBUTES</a> <ul> <li><a href="#lib1">lib</a></li> <li><a href="#ignore_not_found1">ignore_not_found</a></li> <li><a href="#lang1">lang</a></li> <li><a href="#api1">api</a></li> </ul> </li> <li><a href="#METHODS">METHODS</a> <ul> <li><a href="#type">type</a></li> <li><a href="#custom_type">custom_type</a></li> <li><a href="#load_custom_type">load_custom_type</a></li> <li><a href="#types">types</a></li> <li><a href="#type_meta">type_meta</a></li> <li><a href="#mangler">mangler</a></li> <li><a href="#function">function</a></li> <li><a href="#attach">attach</a></li> <li><a href="#closure">closure</a></li> <li><a href="#cast">cast</a></li> <li><a href="#attach_cast">attach_cast</a></li> <li><a href="#sizeof">sizeof</a></li> <li><a href="#alignof">alignof</a></li> <li><a href="#kindof">kindof</a></li> <li><a href="#countof">countof</a></li> <li><a href="#def">def</a></li> <li><a href="#unitof">unitof</a></li> <li><a href="#find_lib">find_lib</a></li> <li><a href="#find_symbol">find_symbol</a></li> <li><a href="#bundle">bundle</a></li> <li><a href="#package">package</a></li> <li><a href="#abis">abis</a></li> <li><a href="#abi">abi</a></li> </ul> </li> <li><a href="#EXAMPLES">EXAMPLES</a> <ul> <li><a href="#Passing-and-Returning-Integers">Passing and Returning Integers</a> <ul> <li><a href="#C-Source">C Source</a></li> <li><a href="#Perl-Source">Perl Source</a></li> <li><a href="#Execute">Execute</a></li> <li><a href="#Discussion">Discussion</a></li> </ul> </li> <li><a href="#String-Arguments-(with-puts)">String Arguments (with puts)</a> <ul> <li><a href="#C-API">C API</a></li> <li><a href="#Perl-Source1">Perl Source</a></li> <li><a href="#Execute1">Execute</a></li> <li><a href="#Discussion1">Discussion</a></li> </ul> </li> <li><a href="#Returning-Strings">Returning Strings</a> <ul> <li><a href="#C-Source1">C Source</a></li> <li><a href="#Perl-Source2">Perl Source</a></li> <li><a href="#Execute2">Execute</a></li> <li><a href="#Discussion2">Discussion</a></li> </ul> </li> <li><a href="#Returning-and-Freeing-Strings-with-Embedded-NULLs">Returning and Freeing Strings with Embedded NULLs</a> <ul> <li><a href="#C-Source2">C Source</a></li> <li><a href="#Perl-Source3">Perl Source</a></li> <li><a href="#Execute3">Execute</a></li> <li><a href="#Discussion3">Discussion</a></li> </ul> </li> <li><a href="#Pointers">Pointers</a> <ul> <li><a href="#C-Source3">C Source</a></li> <li><a href="#Perl-Source4">Perl Source</a></li> <li><a href="#Execute4">Execute</a></li> <li><a href="#Discussion4">Discussion</a></li> </ul> </li> <li><a href="#Opaque-Pointers-(objects)">Opaque Pointers (objects)</a> <ul> <li><a href="#C-Source4">C Source</a></li> <li><a href="#Perl-Source5">Perl Source</a></li> <li><a href="#Execute5">Execute</a></li> <li><a href="#Discussion5">Discussion</a></li> </ul> </li> <li><a href="#Opaque-Pointers-(buffers-and-strings)">Opaque Pointers (buffers and strings)</a> <ul> <li><a href="#C-API1">C API</a></li> <li><a href="#Perl-Source6">Perl Source</a></li> <li><a href="#Execute6">Execute</a></li> <li><a href="#Discussion6">Discussion</a></li> </ul> </li> <li><a href="#Arrays">Arrays</a> <ul> <li><a href="#C-Source5">C Source</a></li> <li><a href="#Perl-Source7">Perl Source</a></li> <li><a href="#Execute7">Execute</a></li> <li><a href="#Discussion7">Discussion</a></li> </ul> </li> <li><a href="#Pointers-as-Arrays">Pointers as Arrays</a> <ul> <li><a href="#C-Source6">C Source</a></li> <li><a href="#Perl-Source8">Perl Source</a></li> <li><a href="#Execute8">Execute</a></li> <li><a href="#Discussion8">Discussion</a></li> </ul> </li> <li><a href="#Sending-Strings-to-GUI-on-Unix-with-libnotify">Sending Strings to GUI on Unix with libnotify</a> <ul> <li><a href="#C-API2">C API</a></li> <li><a href="#Perl-Source9">Perl Source</a></li> <li><a href="#Execute9">Execute</a></li> <li><a href="#Discussion9">Discussion</a></li> </ul> </li> <li><a href="#The-Win32-API-with-MessageBoxW">The Win32 API with MessageBoxW</a> <ul> <li><a href="#Win32-API">Win32 API</a></li> <li><a href="#Perl-Source10">Perl Source</a></li> <li><a href="#Execute10">Execute</a></li> <li><a href="#Discussion10">Discussion</a></li> <li><a href="#Discussion11">Discussion</a></li> </ul> </li> <li><a href="#Structured-Data-Records-(by-pointer-or-by-reference)">Structured Data Records (by pointer or by reference)</a> <ul> <li><a href="#C-API3">C API</a></li> <li><a href="#Perl-Source11">Perl Source</a></li> <li><a href="#Execute11">Execute</a></li> <li><a href="#Discussion12">Discussion</a></li> </ul> </li> <li><a href="#Structured-Data-Records-(on-stack-or-by-value)">Structured Data Records (on stack or by value)</a> <ul> <li><a href="#C-Source7">C Source</a></li> <li><a href="#Perl-Source12">Perl Source</a></li> <li><a href="#Execute12">Execute</a></li> <li><a href="#Discussion13">Discussion</a></li> </ul> </li> <li><a href="#Avoiding-Copy-Using-Memory-Windows-(with-libzmq3)">Avoiding Copy Using Memory Windows (with libzmq3)</a> <ul> <li><a href="#C-API4">C API</a></li> <li><a href="#Perl-Source13">Perl Source</a></li> <li><a href="#Execute13">Execute</a></li> <li><a href="#Discussion14">Discussion</a></li> </ul> </li> <li><a href="#libarchive">libarchive</a> <ul> <li><a href="#C-Documentation">C Documentation</a></li> <li><a href="#Perl-Source14">Perl Source</a></li> <li><a href="#Execute14">Execute</a></li> <li><a href="#Discussion15">Discussion</a></li> </ul> </li> <li><a href="#unix-open">unix open</a> <ul> <li><a href="#C-API5">C API</a></li> <li><a href="#Perl-Source15">Perl Source</a></li> <li><a href="#Execute15">Execute</a></li> <li><a href="#Discussion16">Discussion</a></li> </ul> </li> <li><a href="#Varadic-Functions-(with-libcurl)">Varadic Functions (with libcurl)</a> <ul> <li><a href="#C-API6">C API</a></li> <li><a href="#Perl-Source16">Perl Source</a></li> <li><a href="#Execute16">Execute</a></li> <li><a href="#Discussion17">Discussion</a></li> </ul> </li> <li><a href="#Callbacks-(with-libcurl)">Callbacks (with libcurl)</a> <ul> <li><a href="#C-API7">C API</a></li> <li><a href="#Perl-Source17">Perl Source</a></li> <li><a href="#Execute17">Execute</a></li> <li><a href="#Discussion18">Discussion</a></li> </ul> </li> <li><a href="#bundle-your-own-code">bundle your own code</a> <ul> <li><a href="#C-Source8">C Source</a></li> <li><a href="#Perl-Source18">Perl Source</a></li> <li><a href="#Execute18">Execute</a></li> <li><a href="#Discussion19">Discussion</a></li> </ul> </li> </ul> </li> <li><a href="#FAQ">FAQ</a> <ul> <li><a href="#How-do-I-get-constants-defined-as-macros-in-C-header-files">How do I get constants defined as macros in C header files</a></li> <li><a href="#What-about-enums%3F">What about enums?</a></li> <li><a href="#Memory-leaks">Memory leaks</a></li> <li><a href="#I-get-seg-faults-on-some-platforms-but-not-others-with-a-library-using-pthreads.">I get seg faults on some platforms but not others with a library using pthreads.</a></li> <li><a href="#Doesn%27t-work-on-Perl-5.10.0.">Doesn&#39;t work on Perl 5.10.0.</a></li> </ul> </li> <li><a href="#CAVEATS">CAVEATS</a></li> <li><a href="#SUPPORT">SUPPORT</a></li> <li><a href="#CONTRIBUTING">CONTRIBUTING</a> <ul> <li><a href="#Coding-Guidelines">Coding Guidelines</a></li> <li><a href="#Performance-Testing">Performance Testing</a></li> <li><a href="#System-integrators">System integrators</a></li> </ul> </li> <li><a href="#SEE-ALSO">SEE ALSO</a> <ul> <li><a href="#Extending-Platypus">Extending Platypus</a></li> <li><a href="#Languages">Languages</a></li> <li><a href="#Other-Tools-Related-Tools-Useful-for-FFI">Other Tools Related Tools Useful for FFI</a></li> <li><a href="#Other-Foreign-Function-Interfaces">Other Foreign Function Interfaces</a></li> <li><a href="#Other">Other</a></li> </ul> </li> <li><a href="#ACKNOWLEDGMENTS">ACKNOWLEDGMENTS</a></li> <li><a href="#AUTHOR">AUTHOR</a></li> <li><a href="#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li> </ul></nav> <div class="pod anchors"> <h1 id="NAME">NAME</h1> <p>FFI::Platypus - Write Perl bindings to non-Perl libraries with FFI. No XS required.</p> <h1 id="VERSION">VERSION</h1> <p>version 2.10</p> <h1 id="SYNOPSIS">SYNOPSIS</h1> <pre><code>use FFI::Platypus 2.00; # for all new code you should use api =&gt; 2 my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; undef, # search libc ); # call dynamically $ffi-&gt;function( puts =&gt; [&#39;string&#39;] =&gt; &#39;int&#39; )-&gt;call(&quot;hello world&quot;); # attach as a xsub and call (much faster) $ffi-&gt;attach( puts =&gt; [&#39;string&#39;] =&gt; &#39;int&#39; ); puts(&quot;hello world&quot;);</code></pre> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p>Platypus is a library for creating interfaces to machine code libraries written in languages like C, <a href="/pod/FFI::Platypus::Lang::CPP">C++</a>, <a href="/pod/FFI::Platypus::Lang::Go">Go</a>, <a href="/pod/FFI::Platypus::Lang::Fortran">Fortran</a>, <a href="/pod/FFI::Platypus::Lang::Rust">Rust</a>, <a href="/pod/FFI::Platypus::Lang::Pascal">Pascal</a>. Essentially anything that gets compiled into machine code. This implementation uses <a href="https://sourceware.org/libffi/">libffi</a> to accomplish this task. <a href="https://sourceware.org/libffi/">libffi</a> is battle tested by a number of other scripting and virtual machine languages, such as Python and Ruby to serve a similar role. There are a number of reasons why you might want to write an extension with Platypus instead of XS:</p> <dl> <dt id="FFI-/-Platypus-does-not-require-messing-with-the-guts-of-Perl"><a id="FFI1"></a><a id="FFI-Platypus-does-not-require-messing-with-the-guts-of-Perl"></a>FFI / Platypus does not require messing with the guts of Perl</dt> <dd> <p>XS is less of an API and more of the guts of perl splayed out to do whatever you want. That may at times be very powerful, but it can also be a frustrating exercise in hair pulling.</p> </dd> <dt id="FFI-/-Platypus-is-portable"><a id="FFI2"></a><a id="FFI-Platypus-is-portable"></a>FFI / Platypus is portable</dt> <dd> <p>Lots of languages have FFI interfaces, and it is subjectively easier to port an extension written in FFI in Perl or another language to FFI in another language or Perl. One goal of the Platypus Project is to reduce common interface specifications to a common format like JSON that could be shared between different languages.</p> </dd> <dt id="FFI-/-Platypus-could-be-a-bridge-to-Raku"><a id="FFI3"></a><a id="FFI-Platypus-could-be-a-bridge-to-Raku"></a>FFI / Platypus could be a bridge to Raku</dt> <dd> <p>One of those &quot;other&quot; languages could be Raku and Raku already has an FFI interface I am told.</p> </dd> <dt id="FFI-/-Platypus-can-be-reimplemented"><a id="FFI4"></a><a id="FFI-Platypus-can-be-reimplemented"></a>FFI / Platypus can be reimplemented</dt> <dd> <p>In a bright future with multiple implementations of Perl 5, each interpreter will have its own implementation of Platypus, allowing extensions to be written once and used on multiple platforms, in much the same way that Ruby-FFI extensions can be use in Ruby, JRuby and Rubinius.</p> </dd> <dt id="FFI-/-Platypus-is-pure-perl-(sorta)"><a id="FFI5"></a><a id="FFI-Platypus-is-pure-perl-sorta"></a>FFI / Platypus is pure perl (sorta)</dt> <dd> <p>One Platypus script or module works on any platform where the libraries it uses are available. That means you can deploy your Platypus script in a shared filesystem where they may be run on different platforms. It also means that Platypus modules do not need to be installed in the platform specific Perl library path.</p> </dd> <dt id="FFI-/-Platypus-is-not-C-or-C++-centric"><a id="FFI6"></a><a id="FFI-Platypus-is-not-C-or-C-centric"></a>FFI / Platypus is not C or C++ centric</dt> <dd> <p>XS is implemented primarily as a bunch of C macros, which requires at least some understanding of C, the C pre-processor, and some C++ caveats (since on some platforms Perl is compiled and linked with a C++ compiler). Platypus on the other hand could be used to call other compiled languages, like <a href="/pod/FFI::Platypus::Lang::Fortran">Fortran</a>, <a href="/pod/FFI::Platypus::Lang::Go">Go</a>, <a href="/pod/FFI::Platypus::Lang::Rust">Rust</a>, <a href="/pod/FFI::Platypus::Lang::Pascal">Pascal</a>, <a href="/pod/FFI::Platypus::Lang::CPP">C++</a>, or even <a href="/pod/FFI::Platypus::Lang::ASM">assembly</a>, allowing you to focus on your strengths.</p> </dd> <dt id="FFI-/-Platypus-does-not-require-a-parser"><a id="FFI7"></a><a id="FFI-Platypus-does-not-require-a-parser"></a>FFI / Platypus does not require a parser</dt> <dd> <p><a href="/pod/Inline">Inline</a> isolates the extension developer from XS to some extent, but it also requires a parser. The various <a href="/pod/Inline">Inline</a> language bindings are a great technical achievement, but I think writing a parser for every language that you want to interface with is a bit of an anti-pattern.</p> </dd> </dl> <p>This document consists of an API reference, a set of examples, some support and development (for contributors) information. If you are new to Platypus or FFI, you may want to skip down to the <a href="#EXAMPLES">EXAMPLES</a> to get a taste of what you can do with Platypus.</p> <p>Platypus has extensive documentation of types at <a href="/pod/FFI::Platypus::Type">FFI::Platypus::Type</a> and its custom types API at <a href="/pod/FFI::Platypus::API">FFI::Platypus::API</a>.</p> <p>You are <b>strongly</b> encouraged to use API level 2 for all new code. There are a number of improvements and design fixes that you get for free. You should even consider updating existing modules to use API level 2 where feasible. How do I do that you might ask? Simply pass in the API level to the platypus constructor.</p> <pre><code>my $ffi = FFI::Platypus-&gt;new( api =&gt; 2 );</code></pre> <p>The Platypus documentation has already been updated to assume API level 1.</p> <h1 id="CONSTRUCTORS">CONSTRUCTORS</h1> <h2 id="new">new</h2> <pre><code>my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, %options);</code></pre> <p>Create a new instance of <a href="/pod/FFI::Platypus">FFI::Platypus</a>.</p> <p>Any types defined with this instance will be valid for this instance only, so you do not need to worry about stepping on the toes of other CPAN FFI / Platypus Authors.</p> <p>Any functions found will be out of the list of libraries specified with the <a href="#lib">lib</a> attribute.</p> <h3 id="options">options</h3> <dl> <dt id="api">api</dt> <dd> <p>[version 0.91]</p> <p>Sets the API level. The recommended value for all new code is <code>2</code>. The Platypus documentation assumes API level <code>2</code> except for a few places that specifically document older versions. You should only use a lower value for a legacy code base that cannot be migrated to a newer API level. Legal values are:</p> <dl> <dt id="0"><a id="pod0"></a><code>0</code></dt> <dd> <p>Original API level. See <a href="/pod/FFI::Platypus::TypeParser::Version0">FFI::Platypus::TypeParser::Version0</a> for details on the differences.</p> </dd> <dt id="1"><a id="pod1"></a><code>1</code></dt> <dd> <p>Enable version 1 API type parser which allows pass-by-value records and type decoration on basic types.</p> </dd> <dt id="2"><a id="pod2"></a><code>2</code></dt> <dd> <p>Enable version 2 API. The Platypus documentation assumes this api level is set.</p> <p>API version 2 is identical to version 1, except:</p> <dl> <dt id="Pointer-functions-that-return-NULL-will-return-undef-instead-of-empty-list"><a id="Pointer"></a>Pointer functions that return <code>NULL</code> will return <code>undef</code> instead of empty list</dt> <dd> <p>This fixes a long standing design bug in Platypus.</p> </dd> <dt id="Array-references-may-be-passed-to-pointer-argument-types"><a id="Array"></a>Array references may be passed to pointer argument types</dt> <dd> <p>This replicates the behavior of array argument types with no size. So the types <code>sint8*</code> and <code>sint8[]</code> behave identically when an array reference is passed in. They differ in that, as before, you can pass a scalar reference into type <code>sint8*</code>.</p> </dd> <dt id="The-fixed-string-type-can-be-specified-without-pointer-modifier"><a id="The"></a>The fixed string type can be specified without pointer modifier</dt> <dd> <p>That is you can use <code>string(10)</code> instead of <code>string(10)*</code> as you were previously able to in API 0.</p> </dd> </dl> </dd> </dl> </dd> <dt id="lib">lib</dt> <dd> <p>Either a pathname (string) or a list of pathnames (array ref of strings) to pre-populate the <a href="#lib">lib</a> attribute. Use <code>[undef]</code> to search the current process for symbols.</p> <p>0.48</p> <p><code>undef</code> (without the array reference) can be used to search the current process for symbols.</p> </dd> <dt id="ignore_not_found">ignore_not_found</dt> <dd> <p>[version 0.15]</p> <p>Set the <a href="#ignore_not_found">ignore_not_found</a> attribute.</p> </dd> <dt id="lang">lang</dt> <dd> <p>[version 0.18]</p> <p>Set the <a href="#lang">lang</a> attribute.</p> </dd> </dl> <h1 id="ATTRIBUTES">ATTRIBUTES</h1> <h2 id="lib1">lib</h2> <pre><code>$ffi-&gt;lib($path1, $path2, ...); my @paths = $ffi-&gt;lib;</code></pre> <p>The list of libraries to search for symbols in.</p> <p>The most portable and reliable way to find dynamic libraries is by using <a href="/pod/FFI::CheckLib">FFI::CheckLib</a>, like this:</p> <pre><code>use FFI::CheckLib 0.06; $ffi-&gt;lib(find_lib_or_die lib =&gt; &#39;archive&#39;); # finds libarchive.so on Linux # libarchive.bundle on OS X # libarchive.dll (or archive.dll) on Windows # cygarchive-13.dll on Cygwin # ... # and will die if it isn&#39;t found</code></pre> <p><a href="/pod/FFI::CheckLib">FFI::CheckLib</a> has a number of options, such as checking for specific symbols, etc. You should consult the documentation for that module.</p> <p>As a special case, if you add <code>undef</code> as a &quot;library&quot; to be searched, Platypus will also search the current process for symbols. This is mostly useful for finding functions in the standard C library, without having to know the name of the standard c library for your platform (as it turns out it is different just about everywhere!).</p> <p>You may also use the <a href="#find_lib">&quot;find_lib&quot;</a> method as a shortcut:</p> <pre><code>$ffi-&gt;find_lib( lib =&gt; &#39;archive&#39; );</code></pre> <h2 id="ignore_not_found1">ignore_not_found</h2> <p>[version 0.15]</p> <pre><code>$ffi-&gt;ignore_not_found(1); my $ignore_not_found = $ffi-&gt;ignore_not_found;</code></pre> <p>Normally the <a href="#attach">attach</a> and <a href="#function">function</a> methods will throw an exception if it cannot find the name of the function you provide it. This will change the behavior such that <a href="#function">function</a> will return <code>undef</code> when the function is not found and <a href="#attach">attach</a> will ignore functions that are not found. This is useful when you are writing bindings to a library and have many optional functions and you do not wish to wrap every call to <a href="#function">function</a> or <a href="#attach">attach</a> in an <code>eval</code>.</p> <h2 id="lang1">lang</h2> <p>[version 0.18]</p> <pre><code>$ffi-&gt;lang($language);</code></pre> <p>Specifies the foreign language that you will be interfacing with. The default is C. The foreign language specified with this attribute changes the default native types (for example, if you specify <a href="/pod/FFI::Platypus::Lang::Rust">Rust</a>, you will get <code>i32</code> as an alias for <code>sint32</code> instead of <code>int</code> as you do with <a href="/pod/FFI::Platypus::Lang::C">C</a>).</p> <p>If the foreign language plugin supports it, this will also enable Platypus to find symbols using the demangled names (for example, if you specify <a href="/pod/FFI::Platypus::Lang::CPP">CPP</a> for C++ you can use method names like <code>Foo::get_bar()</code> with <a href="#attach">&quot;attach&quot;</a> or <a href="#function">&quot;function&quot;</a>.</p> <h2 id="api1">api</h2> <p>[version 1.11]</p> <pre><code>my $level = $ffi-&gt;api;</code></pre> <p>Returns the API level of the Platypus instance.</p> <h1 id="METHODS">METHODS</h1> <h2 id="type">type</h2> <pre><code>$ffi-&gt;type($typename); $ffi-&gt;type($typename =&gt; $alias);</code></pre> <p>Define a type. The first argument is the native or C name of the type. The second argument (optional) is an alias name that you can use to refer to this new type. See <a href="/pod/FFI::Platypus::Type">FFI::Platypus::Type</a> for legal type definitions.</p> <p>Examples:</p> <pre><code>$ffi-&gt;type(&#39;sint32&#39;); # only checks to see that sint32 is a valid type $ffi-&gt;type(&#39;sint32&#39; =&gt; &#39;myint&#39;); # creates an alias myint for sint32 $ffi-&gt;type(&#39;bogus&#39;); # dies with appropriate diagnostic</code></pre> <h2 id="custom_type">custom_type</h2> <pre><code>$ffi-&gt;custom_type($alias =&gt; { native_type =&gt; $native_type, native_to_perl =&gt; $coderef, perl_to_native =&gt; $coderef, perl_to_native_post =&gt; $coderef, });</code></pre> <p>Define a custom type. See <a href="/pod/FFI::Platypus::Type#Custom-Types">FFI::Platypus::Type#Custom-Types</a> for details.</p> <h2 id="load_custom_type">load_custom_type</h2> <pre><code>$ffi-&gt;load_custom_type($name =&gt; $alias, @type_args);</code></pre> <p>Load the custom type defined in the module <i>$name</i>, and make an alias <i>$alias</i>. If the custom type requires any arguments, they may be passed in as <i>@type_args</i>. See <a href="/pod/FFI::Platypus::Type#Custom-Types">FFI::Platypus::Type#Custom-Types</a> for details.</p> <p>If <i>$name</i> contains <code>::</code> then it will be assumed to be a fully qualified package name. If not, then <code>FFI::Platypus::Type::</code> will be prepended to it.</p> <h2 id="types">types</h2> <pre><code>my @types = $ffi-&gt;types; my @types = FFI::Platypus-&gt;types;</code></pre> <p>Returns the list of types that FFI knows about. This will include the native <code>libffi</code> types (example: <code>sint32</code>, <code>opaque</code> and <code>double</code>) and the normal C types (example: <code>unsigned int</code>, <code>uint32_t</code>), any types that you have defined using the <a href="#type">type</a> method, and custom types.</p> <p>The list of types that Platypus knows about varies somewhat from platform to platform, <a href="/pod/FFI::Platypus::Type">FFI::Platypus::Type</a> includes a list of the core types that you can always count on having access to.</p> <p>It can also be called as a class method, in which case, no user defined or custom types will be included in the list.</p> <h2 id="type_meta">type_meta</h2> <pre><code>my $meta = $ffi-&gt;type_meta($type_name); my $meta = FFI::Platypus-&gt;type_meta($type_name);</code></pre> <p>Returns a hash reference with the meta information for the given type.</p> <p>It can also be called as a class method, in which case, you won&#39;t be able to get meta data on user defined types.</p> <p>The format of the meta data is implementation dependent and subject to change. It may be useful for display or debugging.</p> <p>Examples:</p> <pre><code>my $meta = $ffi-&gt;type_meta(&#39;int&#39;); # standard int type my $meta = $ffi-&gt;type_meta(&#39;int[64]&#39;); # array of 64 ints $ffi-&gt;type(&#39;int[128]&#39; =&gt; &#39;myintarray&#39;); my $meta = $ffi-&gt;type_meta(&#39;myintarray&#39;); # array of 128 ints</code></pre> <h2 id="mangler">mangler</h2> <pre><code>$ffi-&gt;mangler(\&amp;mangler);</code></pre> <p>Specify a customer mangler to be used for symbol lookup. This is usually useful when you are writing bindings for a library where all of the functions have the same prefix. Example:</p> <pre><code>$ffi-&gt;mangler(sub { my($symbol) = @_; return &quot;foo_$symbol&quot;; }); $ffi-&gt;function( get_bar =&gt; [] =&gt; &#39;int&#39; ); # attaches foo_get_bar my $f = $ffi-&gt;function( set_baz =&gt; [&#39;int&#39;] =&gt; &#39;void&#39; ); $f-&gt;call(22); # calls foo_set_baz</code></pre> <h2 id="function">function</h2> <pre><code>my $function = $ffi-&gt;function($name =&gt; \@argument_types =&gt; $return_type); my $function = $ffi-&gt;function($address =&gt; \@argument_types =&gt; $return_type); my $function = $ffi-&gt;function($name =&gt; \@argument_types =&gt; $return_type, \&amp;wrapper); my $function = $ffi-&gt;function($address =&gt; \@argument_types =&gt; $return_type, \&amp;wrapper);</code></pre> <p>Returns an object that is similar to a code reference in that it can be called like one.</p> <p>Caveat: many situations require a real code reference, so at the price of a performance penalty you can get one like this:</p> <pre><code>my $function = $ffi-&gt;function(...); my $coderef = sub { $function-&gt;(@_) };</code></pre> <p>It may be better, and faster to create a real Perl function using the <a href="#attach">attach</a> method.</p> <p>In addition to looking up a function by name you can provide the address of the symbol yourself:</p> <pre><code>my $address = $ffi-&gt;find_symbol(&#39;my_function&#39;); my $function = $ffi-&gt;function($address =&gt; ...);</code></pre> <p>Under the covers, <a href="#function">function</a> uses <a href="#find_symbol">find_symbol</a> when you provide it with a name, but it is useful to keep this in mind as there are alternative ways of obtaining a functions address. Example: a C function could return the address of another C function that you might want to call.</p> <p>[version 0.76]</p> <p>If the last argument is a code reference, then it will be used as a wrapper around the function when called. The first argument to the wrapper will be the inner function, or if it is later attached an xsub. This can be used if you need to verify/modify input/output data.</p> <p>Examples:</p> <pre><code>my $function = $ffi-&gt;function(&#39;my_function_name&#39;, [&#39;int&#39;, &#39;string&#39;] =&gt; &#39;string&#39;); my $return_string = $function-&gt;(1, &quot;hi there&quot;);</code></pre> <p>[version 0.91]</p> <pre><code>my $function = $ffi-&gt;function( $name =&gt; \@fixed_argument_types =&gt; \@var_argument_types =&gt; $return_type); my $function = $ffi-&gt;function( $name =&gt; \@fixed_argument_types =&gt; \@var_argument_types =&gt; $return_type, \&amp;wrapper); my $function = $ffi-&gt;function( $name =&gt; \@fixed_argument_types =&gt; \@var_argument_types); my $function = $ffi-&gt;function( $name =&gt; \@fixed_argument_types =&gt; \@var_argument_types =&gt; \&amp;wrapper);</code></pre> <p>Version 0.91 and later allows you to creat functions for c variadic functions (such as printf, scanf, etc) which can take a variable number of arguments. The first set of arguments are the fixed set, the second set are the variable arguments to bind with. The variable argument types must be specified in order to create a function object, so if you need to call variadic function with different set of arguments then you will need to create a new function object each time:</p> <pre><code># int printf(const char *fmt, ...); $ffi-&gt;function( printf =&gt; [&#39;string&#39;] =&gt; [&#39;int&#39;] =&gt; &#39;int&#39; ) -&gt;call(&quot;print integer %d\n&quot;, 42); $ffi-&gt;function( printf =&gt; [&#39;string&#39;] =&gt; [&#39;string&#39;] =&gt; &#39;int&#39; ) -&gt;call(&quot;print string %s\n&quot;, &#39;platypus&#39;);</code></pre> <p>Some older versions of libffi and possibly some platforms may not support variadic functions. If you try to create a one, then an exception will be thrown.</p> <p>[version 1.26]</p> <p>If the return type is omitted then <code>void</code> will be the assumed return type.</p> <h2 id="attach">attach</h2> <pre><code>$ffi-&gt;attach($name =&gt; \@argument_types =&gt; $return_type); $ffi-&gt;attach([$c_name =&gt; $perl_name] =&gt; \@argument_types =&gt; $return_type); $ffi-&gt;attach([$address =&gt; $perl_name] =&gt; \@argument_types =&gt; $return_type); $ffi-&gt;attach($name =&gt; \@argument_types =&gt; $return_type, \&amp;wrapper); $ffi-&gt;attach([$c_name =&gt; $perl_name] =&gt; \@argument_types =&gt; $return_type, \&amp;wrapper); $ffi-&gt;attach([$address =&gt; $perl_name] =&gt; \@argument_types =&gt; $return_type, \&amp;wrapper);</code></pre> <p>Find and attach a C function as a real live Perl xsub. The advantage of attaching a function over using the <a href="#function">function</a> method is that it is much much much faster since no object resolution needs to be done. The disadvantage is that it locks the function and the <a href="/pod/FFI::Platypus">FFI::Platypus</a> instance into memory permanently, since there is no way to deallocate an xsub.</p> <p>If just one <i>$name</i> is given, then the function will be attached in Perl with the same name as it has in C. The second form allows you to give the Perl function a different name. You can also provide an address (the third form), just like with the <a href="#function">function</a> method.</p> <p>Examples:</p> <pre><code>$ffi-&gt;attach(&#39;my_function_name&#39;, [&#39;int&#39;, &#39;string&#39;] =&gt; &#39;string&#39;); $ffi-&gt;attach([&#39;my_c_function_name&#39; =&gt; &#39;my_perl_function_name&#39;], [&#39;int&#39;, &#39;string&#39;] =&gt; &#39;string&#39;); my $string1 = my_function_name($int); my $string2 = my_perl_function_name($int);</code></pre> <p>[version 0.20]</p> <p>If the last argument is a code reference, then it will be used as a wrapper around the attached xsub. The first argument to the wrapper will be the inner xsub. This can be used if you need to verify/modify input/output data.</p> <p>Examples:</p> <pre><code>$ffi-&gt;attach(&#39;my_function&#39;, [&#39;int&#39;, &#39;string&#39;] =&gt; &#39;string&#39;, sub { my($my_function_xsub, $integer, $string) = @_; $integer++; $string .= &quot; and another thing&quot;; my $return_string = $my_function_xsub-&gt;($integer, $string); $return_string =~ s/Belgium//; # HHGG remove profanity $return_string; });</code></pre> <p>[version 0.91]</p> <pre><code>$ffi-&gt;attach($name =&gt; \@fixed_argument_types =&gt; \@var_argument_types, $return_type); $ffi-&gt;attach($name =&gt; \@fixed_argument_types =&gt; \@var_argument_types, $return_type, \&amp;wrapper);</code></pre> <p>As of version 0.91 you can attach a variadic functions, if it is supported by the platform / libffi that you are using. For details see the <code>function</code> documentation. If not supported by the implementation then an exception will be thrown.</p> <h2 id="closure">closure</h2> <pre><code>my $closure = $ffi-&gt;closure($coderef); my $closure = FFI::Platypus-&gt;closure($coderef);</code></pre> <p>Prepares a code reference so that it can be used as a FFI closure (a Perl subroutine that can be called from C code). For details on closures, see <a href="/pod/FFI::Platypus::Type#Closures">FFI::Platypus::Type#Closures</a> and <a href="/pod/FFI::Platypus::Closure">FFI::Platypus::Closure</a>.</p> <h2 id="cast">cast</h2> <pre><code>my $converted_value = $ffi-&gt;cast($original_type, $converted_type, $original_value);</code></pre> <p>The <code>cast</code> function converts an existing <i>$original_value</i> of type <i>$original_type</i> into one of type <i>$converted_type</i>. Not all types are supported, so care must be taken. For example, to get the address of a string, you can do this:</p> <pre><code>my $address = $ffi-&gt;cast(&#39;string&#39; =&gt; &#39;opaque&#39;, $string_value);</code></pre> <p>Something that won&#39;t work is trying to cast an array to anything:</p> <pre><code>my $address = $ffi-&gt;cast(&#39;int[10]&#39; =&gt; &#39;opaque&#39;, \@list); # WRONG</code></pre> <h2 id="attach_cast">attach_cast</h2> <pre><code>$ffi-&gt;attach_cast(&quot;cast_name&quot;, $original_type, $converted_type); $ffi-&gt;attach_cast(&quot;cast_name&quot;, $original_type, $converted_type, \&amp;wrapper); my $converted_value = cast_name($original_value);</code></pre> <p>This function attaches a cast as a permanent xsub. This will make it faster and may be useful if you are calling a particular cast a lot.</p> <p>[version 1.26]</p> <p>A wrapper may be added as the last argument to <code>attach_cast</code> and works just like the wrapper for <code>attach</code> and <code>function</code> methods.</p> <h2 id="sizeof">sizeof</h2> <pre><code>my $size = $ffi-&gt;sizeof($type); my $size = FFI::Platypus-&gt;sizeof($type);</code></pre> <p>Returns the total size of the given type in bytes. For example to get the size of an integer:</p> <pre><code>my $intsize = $ffi-&gt;sizeof(&#39;int&#39;); # usually 4 my $longsize = $ffi-&gt;sizeof(&#39;long&#39;); # usually 4 or 8 depending on platform</code></pre> <p>You can also get the size of arrays</p> <pre><code>my $intarraysize = $ffi-&gt;sizeof(&#39;int[64]&#39;); # usually 4*64 my $intarraysize = $ffi-&gt;sizeof(&#39;long[64]&#39;); # usually 4*64 or 8*64 # depending on platform</code></pre> <p>Keep in mind that &quot;pointer&quot; types will always be the pointer / word size for the platform that you are using. This includes strings, opaque and pointers to other types.</p> <p>This function is not very fast, so you might want to save this value as a constant, particularly if you need the size in a loop with many iterations.</p> <h2 id="alignof">alignof</h2> <p>[version 0.21]</p> <pre><code>my $align = $ffi-&gt;alignof($type);</code></pre> <p>Returns the alignment of the given type in bytes.</p> <h2 id="kindof">kindof</h2> <p>[version 1.24]</p> <pre><code>my $kind = $ffi-&gt;kindof($type);</code></pre> <p>Returns the kind of a type. This is a string with a value of one of</p> <dl> <dt id="void"><code>void</code></dt> <dd> </dd> <dt id="scalar"><code>scalar</code></dt> <dd> </dd> <dt id="string"><code>string</code></dt> <dd> </dd> <dt id="closure1"><code>closure</code></dt> <dd> </dd> <dt id="record"><code>record</code></dt> <dd> </dd> <dt id="record-value"><a id="record1"></a><code>record-value</code></dt> <dd> </dd> <dt id="pointer"><code>pointer</code></dt> <dd> </dd> <dt id="array"><code>array</code></dt> <dd> </dd> <dt id="object"><code>object</code></dt> <dd> </dd> </dl> <h2 id="countof">countof</h2> <p>[version 1.24]</p> <pre><code>my $count = $ffi-&gt;countof($type);</code></pre> <p>For array types returns the number of elements in the array (returns 0 for variable length array). For the <code>void</code> type returns 0. Returns 1 for all other types.</p> <h2 id="def">def</h2> <p>[version 1.24]</p> <pre><code>$ffi-&gt;def($package, $type, $value); my $value = $ff-&gt;def($package, $type);</code></pre> <p>This method allows you to store data for types. If the <code>$package</code> is not provided, then the caller&#39;s package will be used. <code>$type</code> must be a legal Platypus type for the <a href="/pod/FFI::Platypus">FFI::Platypus</a> instance.</p> <h2 id="unitof">unitof</h2> <p>[version 1.24]</p> <pre><code>my $unittype = $ffi-&gt;unitof($type);</code></pre> <p>For array and pointer types, returns the basic type without the array or pointer part. In other words, for <code>sin16[]</code> or <code>sint16*</code> it will return <code>sint16</code>.</p> <h2 id="find_lib">find_lib</h2> <p>[version 0.20]</p> <pre><code>$ffi-&gt;find_lib( lib =&gt; $libname );</code></pre> <p>This is just a shortcut for calling <a href="/pod/FFI::CheckLib#find_lib">FFI::CheckLib#find_lib</a> and updating the <a href="#lib">&quot;lib&quot;</a> attribute appropriately. Care should be taken though, as this method simply passes its arguments to <a href="/pod/FFI::CheckLib#find_lib">FFI::CheckLib#find_lib</a>, so if your module or script is depending on a specific feature in <a href="/pod/FFI::CheckLib">FFI::CheckLib</a> then make sure that you update your prerequisites appropriately.</p> <h2 id="find_symbol">find_symbol</h2> <pre><code>my $address = $ffi-&gt;find_symbol($name);</code></pre> <p>Return the address of the given symbol (usually function).</p> <h2 id="bundle">bundle</h2> <p>[version 0.96 api = 1+]</p> <pre><code>$ffi-&gt;bundle($package, \@args); $ffi-&gt;bundle(\@args); $ffi-&gt;bundle($package); $ffi-&gt;bundle;</code></pre> <p>This is an interface for bundling compiled code with your distribution intended to eventually replace the <code>package</code> method documented above. See <a href="/pod/FFI::Platypus::Bundle">FFI::Platypus::Bundle</a> for details on how this works.</p> <h2 id="package">package</h2> <p>[version 0.15 api = 0]</p> <pre><code>$ffi-&gt;package($package, $file); # usually __PACKAGE__ and __FILE__ can be used $ffi-&gt;package; # autodetect</code></pre> <p><b>Note</b>: This method is officially discouraged in favor of <code>bundle</code> described above.</p> <p>If you use <a href="/pod/FFI::Build">FFI::Build</a> (or the older deprecated <a href="/pod/Module::Build::FFI">Module::Build::FFI</a> to bundle C code with your distribution, you can use this method to tell the <a href="/pod/FFI::Platypus">FFI::Platypus</a> instance to look for symbols that came with the dynamic library that was built when your distribution was installed.</p> <h2 id="abis">abis</h2> <pre><code>my $href = $ffi-&gt;abis; my $href = FFI::Platypus-&gt;abis;</code></pre> <p>Get the legal ABIs supported by your platform and underlying implementation. What is supported can vary a lot by CPU and by platform, or even between 32 and 64 bit on the same CPU and platform. They keys are the &quot;ABI&quot; names, also known as &quot;calling conventions&quot;. The values are integers used internally by the implementation to represent those ABIs.</p> <h2 id="abi">abi</h2> <pre><code>$ffi-&gt;abi($name);</code></pre> <p>Set the ABI or calling convention for use in subsequent calls to <a href="#function">&quot;function&quot;</a> or <a href="#attach">&quot;attach&quot;</a>. May be either a string name or integer value from the <a href="#abis">&quot;abis&quot;</a> method above.</p> <h1 id="EXAMPLES">EXAMPLES</h1> <p>Here are some examples. These examples are provided in full with the Platypus distribution in the &quot;examples&quot; directory. There are also some more examples in <a href="/pod/FFI::Platypus::Type">FFI::Platypus::Type</a> that are related to types.</p> <h2 id="Passing-and-Returning-Integers"><a id="Passing"></a>Passing and Returning Integers</h2> <h3 id="C-Source"><a id="C"></a>C Source</h3> <pre><code>int add(int a, int b) { return a+b; }</code></pre> <h3 id="Perl-Source"><a id="Perl"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; use FFI::CheckLib qw( find_lib_or_die ); use File::Basename qw( dirname ); my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; &#39;./add.so&#39; ); $ffi-&gt;attach( add =&gt; [&#39;int&#39;, &#39;int&#39;] =&gt; &#39;int&#39; ); print add(1,2), &quot;\n&quot;; # prints 3</code></pre> <h3 id="Execute">Execute</h3> <pre><code>$ cc -shared -o add.so add.c $ perl add.pl 3</code></pre> <h3 id="Discussion">Discussion</h3> <p>Basic types like integers and floating points are the easiest to pass across the FFI boundary. Because they are values that are passed on the stack (or through registers) you don&#39;t need to worry about memory allocations or ownership.</p> <p>Here we are building our own C dynamic library using the native C compiler on a Unix like platform. The exact incantation that you will use to do this would unfortunately depend on your platform and C compiler.</p> <p>By default, Platypus uses the <a href="/pod/FFI::Platypus::Lang::C">Platypus C language plugin</a>, which gives you easy access to many of the basic types used by C APIs. (for example <code>int</code>, <code>unsigned long</code>, <code>double</code>, <code>size_t</code> and others).</p> <p>If you are working with another language like <a href="/pod/FFI::Platypus::Lang::Fortran#Passing-and-Returning-Integers">Fortran</a>, <a href="/pod/FFI::Platypus::Lang::Go#Passing-and-Returning-Integers">Go</a>, <a href="/pod/FFI::Platypus::Lang::Rust#Passing-and-Returning-Integers">Rust</a> or <a href="/pod/FFI::Platypus::Lang::Zig#Passing-and-Returning-Integers">Zig</a>, you will find similar examples where you can use the Platypus language plugin for that language and use the native types.</p> <h2 id="String-Arguments-(with-puts)"><a id="String"></a><a id="String-Arguments-with-puts"></a>String Arguments (with puts)</h2> <h3 id="C-API"><a id="C1"></a>C API</h3> <p><a href="https://en.cppreference.com/w/c/io/puts">cppreference - puts</a></p> <h3 id="Perl-Source1"><a id="Perl1"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; undef ); $ffi-&gt;attach( puts =&gt; [&#39;string&#39;] =&gt; &#39;int&#39; ); puts(&quot;hello world&quot;);</code></pre> <h3 id="Execute1">Execute</h3> <pre><code>$ perl puts.pl hello world</code></pre> <h3 id="Discussion1">Discussion</h3> <p>Passing strings into a C function as an argument is also pretty easy using Platypus. Just use the <code>string</code> type, which is equivalent to the C &lt;char *&gt; or <code>const char *</code> types.</p> <p>In this example we are using the C Standard Library&#39;s <code>puts</code> function, so we don&#39;t need to build our own C code. We do still need to tell Platypus where to look for the <code>puts</code> symbol though, which is why we set <code>lib</code> to <code>undef</code>. This is a special value which tells Platypus to search the Perl runtime executable itself (including any dynamic libraries) for symbols. That helpfully includes the C Standard Library.</p> <h2 id="Returning-Strings"><a id="Returning"></a>Returning Strings</h2> <h3 id="C-Source1"><a id="C2"></a>C Source</h3> <pre><code>#include &lt;string.h&gt; #include &lt;stdlib.h&gt; const char * string_reverse(const char *input) { static char *output = NULL; int i, len; if(output != NULL) free(output); if(input == NULL) return NULL; len = strlen(input); output = malloc(len+1); for(i=0; input[i]; i++) output[len-i-1] = input[i]; output[len] = &#39;\0&#39;; return output; }</code></pre> <h3 id="Perl-Source2"><a id="Perl2"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; &#39;./string_reverse.so&#39;, ); $ffi-&gt;attach( string_reverse =&gt; [&#39;string&#39;] =&gt; &#39;string&#39; ); print string_reverse(&quot;\nHello world&quot;); string_reverse(undef);</code></pre> <h3 id="Execute2">Execute</h3> <pre><code>$ cc -shared -o string_reverse.so string_reverse.c $ perl string_reverse.pl dlrow olleH</code></pre> <h3 id="Discussion2">Discussion</h3> <p>The C code here takes an input ASCII string and reverses it, returning the result. Note that it retains ownership of the string, the caller is expected to use it before the next call to <code>reverse_string</code>, or copy it.</p> <p>The Perl code simply declares the return value as <code>string</code> and is very simple. This does bring up an inconsistency though, strings passed in to a function as arguments are passed by reference, whereas the return value is copied! This is usually what you want because C APIs usually follow this pattern where you are expected to make your own copy of the string.</p> <p>At the end of the program we call <code>reverse_string</code> with <code>undef</code>, which gets translated to C as <code>NULL</code>. This allows it to free the output buffer so that the memory will not leak.</p> <h2 id="Returning-and-Freeing-Strings-with-Embedded-NULLs"><a id="Returning1"></a>Returning and Freeing Strings with Embedded NULLs</h2> <h3 id="C-Source2"><a id="C3"></a>C Source</h3> <pre><code>#include &lt;string.h&gt; #include &lt;stdlib.h&gt; char * string_crypt(const char *input, int len, const char *key) { char *output; int i, n; if(input == NULL) return NULL; output = malloc(len+1); output[len] = &#39;\0&#39;; for(i=0, n=0; i&lt;len; i++, n++) { if(key[n] == &#39;\0&#39;) n = 0; output[i] = input[i] ^ key[n]; } return output; } void string_crypt_free(char *output) { if(output != NULL) free(output); }</code></pre> <h3 id="Perl-Source3"><a id="Perl3"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; use FFI::Platypus::Buffer qw( buffer_to_scalar ); use YAML (); my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; &#39;./xor_cipher.so&#39;, ); $ffi-&gt;attach( string_crypt_free =&gt; [&#39;opaque&#39;] ); $ffi-&gt;attach( string_crypt =&gt; [&#39;string&#39;,&#39;int&#39;,&#39;string&#39;] =&gt; &#39;opaque&#39; =&gt; sub{ my($xsub, $input, $key) = @_; my $ptr = $xsub-&gt;($input, length($input), $key); my $output = buffer_to_scalar $ptr, length($input); string_crypt_free($ptr); return $output; }); my $orig = &quot;hello world&quot;; my $key = &quot;foobar&quot;; print YAML::Dump($orig); my $encrypted = string_crypt($orig, $key); print YAML::Dump($encrypted); my $decrypted = string_crypt($encrypted, $key); print YAML::Dump($decrypted);</code></pre> <h3 id="Execute3">Execute</h3> <pre><code>$ cc -shared -o xor_cipher.so xor_cipher.c $ perl xor_cipher.pl --- hello world --- &quot;\x0e\n\x03\x0e\x0eR\x11\0\x1d\x0e\x05&quot; --- hello world</code></pre> <h3 id="Discussion3">Discussion</h3> <p>The C code here also returns a string, but it has some different expectations, so we can&#39;t just use the <code>string</code> type like we did in the previous example and copy the string.</p> <p>This C code implements a simple XOR cipher. Given an input string and a key it returns an encrypted or decrypted output string where the characters are XORd with the key. There are some challenges here though. First the input and output strings can have embedded <code>NULL</code>s in them. For the string passed in, we can provide the length of the input string. For the output, the <code>string</code> type expects a <code>NULL</code> terminated string, so we can&#39;t use that. So instead we get a pointer to the output using the <code>opaque</code> type. Because we know that the output string is the same length as the input string we can convert the pointer to a regular Perl string using the <code>buffer_to_scalar</code> function. (For more details about working with buffers and strings see <a href="/pod/FFI::Platypus::Buffer">FFI::Platypus::Buffer</a>).</p> <p>Next, the C code here does not keep the pointer to the output string, as in the previous example. We are expected to call <code>string_encrypt_free</code> when we are done. Since we are getting the pointer back from the C code instead of copying the string that is easy to do.</p> <p>Finally, we are using a wrapper to hide a lot of this complexity from our caller. The last argument to the <code>attach</code> call is a code reference which will wrap around the C function, which is passed in as the first argument of the wrapper. This is a good practice when writing modules, to hide the complexity of C.</p> <h2 id="Pointers">Pointers</h2> <h3 id="C-Source3"><a id="C4"></a>C Source</h3> <pre><code>void swap(int *a, int *b) { int tmp = *b; *b = *a; *a = tmp; }</code></pre> <h3 id="Perl-Source4"><a id="Perl4"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; &#39;./swap.so&#39;, ); $ffi-&gt;attach( swap =&gt; [&#39;int*&#39;,&#39;int*&#39;] ); my $a = 1; my $b = 2; print &quot;[a,b] = [$a,$b]\n&quot;; swap( \$a, \$b ); print &quot;[a,b] = [$a,$b]\n&quot;;</code></pre> <h3 id="Execute4">Execute</h3> <pre><code>$ cc -shared -o swap.so swap.c $ perl swap.pl [a,b] = [1,2] [a,b] = [2,1]</code></pre> <h3 id="Discussion4">Discussion</h3> <p>Pointers are often use in C APIs to return simple values like this. Platypus provides access to pointers to primitive types by appending <code>*</code> to the primitive type. Here for example we are using <code>int*</code> to create a function that takes two pointers to integers and swaps their values.</p> <p>When calling the function from Perl we pass in a reference to a scalar. Strictly speaking Perl allows modifying the argument values to subroutines, so we could have allowed just passing in a scalar, but in the design of Platypus we decided that forcing the use of a reference here emphasizes that you are passing a reference to the variable, not just the value.</p> <p>Not pictured in this example, but you can also pass in <code>undef</code> for a pointer value and that will be translated into <code>NULL</code> on the C side. You can also return a pointer to a primitive type from a function, again this will be returned to Perl as a reference to a scalar. Platypus also supports string pointers (<code>string*</code>). (Though the C equivalent to a <code>string*</code> is a double pointer to char <code>char**</code>).</p> <h2 id="Opaque-Pointers-(objects)"><a id="Opaque"></a><a id="Opaque-Pointers-objects"></a>Opaque Pointers (objects)</h2> <h3 id="C-Source4"><a id="C5"></a>C Source</h3> <pre><code>#include &lt;string.h&gt; #include &lt;stdlib.h&gt; typedef struct person_t { char *name; unsigned int age; } person_t; person_t * person_new(const char *name, unsigned int age) { person_t *self = malloc(sizeof(person_t)); self-&gt;name = strdup(name); self-&gt;age = age; } const char * person_name(person_t *self) { return self-&gt;name; } unsigned int person_age(person_t *self) { return self-&gt;age; } void person_free(person_t *self) { free(self-&gt;name); free(self); }</code></pre> <h3 id="Perl-Source5"><a id="Perl5"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; &#39;./person.so&#39;, ); $ffi-&gt;type( &#39;opaque&#39; =&gt; &#39;person_t&#39; ); $ffi-&gt;attach( person_new =&gt; [&#39;string&#39;,&#39;unsigned int&#39;] =&gt; &#39;person_t&#39; ); $ffi-&gt;attach( person_name =&gt; [&#39;person_t&#39;] =&gt; &#39;string&#39; ); $ffi-&gt;attach( person_age =&gt; [&#39;person_t&#39;] =&gt; &#39;unsigned int&#39; ); $ffi-&gt;attach( person_free =&gt; [&#39;person_t&#39;] ); my $person = person_new( &#39;Roger Frooble Bits&#39;, 35 ); print &quot;name = &quot;, person_name($person), &quot;\n&quot;; print &quot;age = &quot;, person_age($person), &quot;\n&quot;; person_free($person);</code></pre> <h3 id="Execute5">Execute</h3> <pre><code>$ cc -shared -o person.so person.c $ perl person.pl name = Roger Frooble Bits age = 35</code></pre> <h3 id="Discussion5">Discussion</h3> <p>An opaque pointer is a pointer (memory address) that is pointing to <i>something</i> but you do not know the structure of that something. In C this is usually a <code>void*</code>, but it could also be a pointer to a <code>struct</code> without a defined body.</p> <p>This is often used to as an abstraction around objects in C. Here in the C code we have a <code>person_t</code> struct with functions to create (a constructor), free (a destructor) and query it (methods).</p> <p>The Perl code can then use the constructor, methods and destructors without having to understand the internals. The <code>person_t</code> internals can also be changed without having to modify the calling code.</p> <p>We use the Platypus <a href="#type">type method</a> to create an alias of <code>opaque</code> called <code>person_t</code>. While this is not necessary, it does make the Perl code easier to understand.</p> <p>In later examples we will see how to hide the use of <code>opaque</code> types further using the <code>object</code> type, but for some code direct use of <code>opaque</code> is appropriate.</p> <h2 id="Opaque-Pointers-(buffers-and-strings)"><a id="Opaque1"></a><a id="Opaque-Pointers-buffers-and-strings"></a>Opaque Pointers (buffers and strings)</h2> <h3 id="C-API1"><a id="C6"></a>C API</h3> <dl> <dt id="cppreference-free"><a id="cppreference"></a><a id="cppreference---free"></a><a href="https://en.cppreference.com/w/c/memory/free">cppreference - free</a></dt> <dd> </dd> <dt id="cppreference-malloc"><a id="cppreference1"></a><a id="cppreference---malloc"></a><a href="https://en.cppreference.com/w/c/memory/malloc">cppreference - malloc</a></dt> <dd> </dd> <dt id="cppreference-memcpy"><a id="cppreference2"></a><a id="cppreference---memcpy"></a><a href="https://en.cppreference.com/w/c/string/byte/memcpy">cppreference - memcpy</a></dt> <dd> </dd> <dt id="cppreference-strdup"><a id="cppreference3"></a><a id="cppreference---strdup"></a><a href="https://en.cppreference.com/w/c/string/byte/strdup">cppreference - strdup</a></dt> <dd> </dd> </dl> <h3 id="Perl-Source6"><a id="Perl6"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; use FFI::Platypus::Memory qw( malloc free memcpy strdup ); my $ffi = FFI::Platypus-&gt;new( api =&gt; 2 ); my $buffer = malloc 14; my $ptr_string = strdup(&quot;hello there!!\n&quot;); memcpy $buffer, $ptr_string, 15; print $ffi-&gt;cast(&#39;opaque&#39; =&gt; &#39;string&#39;, $buffer); free $ptr_string; free $buffer;</code></pre> <h3 id="Execute6">Execute</h3> <pre><code>$ perl malloc.pl hello there!!</code></pre> <h3 id="Discussion6">Discussion</h3> <p>Another useful application of the <code>opaque</code> type is for dealing with buffers, and C strings that you do not immediately need to convert into Perl strings. This example is completely contrived, but we are using <code>malloc</code> to create a buffer of 14 bytes. We create a C string using <code>strdup</code>, and then copy it into the buffer using <code>memcpy</code>. When we are done with the <code>opaque</code> pointers we can free them using <code>free</code> since they. (This is generally only okay when freeing memory that was allocated by <code>malloc</code>, which is the case for <code>strdup</code>).</p> <p>These memory tools, along with others are provided by the <a href="/pod/FFI::Platypus::Memory">FFI::Platypus::Memory</a> module, which is worth reviewing when you need to manipulate memory from Perl when writing your FFI code.</p> <p>Just to verify that the <code>memcpy</code> did the right thing we convert the buffer into a Perl string and print it out using the Platypus <a href="#cast">cast method</a>.</p> <h2 id="Arrays">Arrays</h2> <h3 id="C-Source5"><a id="C7"></a>C Source</h3> <pre><code>void array_reverse(int a[], int len) { int tmp, i; for(i=0; i &lt; len/2; i++) { tmp = a[i]; a[i] = a[len-i-1]; a[len-i-1] = tmp; } } void array_reverse10(int a[10]) { array_reverse(a, 10); }</code></pre> <h3 id="Perl-Source7"><a id="Perl7"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; &#39;./array_reverse.so&#39;, ); $ffi-&gt;attach( array_reverse =&gt; [&#39;int[]&#39;,&#39;int&#39;] ); $ffi-&gt;attach( array_reverse10 =&gt; [&#39;int[10]&#39;] ); my @a = (1..10); array_reverse10( \@a ); print &quot;$_ &quot; for @a; print &quot;\n&quot;; @a = (1..20); array_reverse( \@a, 20 ); print &quot;$_ &quot; for @a; print &quot;\n&quot;;</code></pre> <h3 id="Execute7">Execute</h3> <pre><code>$ cc -shared -o array_reverse.so array_reverse.c $ perl array_reverse.pl 10 9 8 7 6 5 4 3 2 1 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1</code></pre> <h3 id="Discussion7">Discussion</h3> <p>Arrays in C are passed as pointers, so the C code here reverses the array in place, rather than returning it. Arrays can also be fixed or variable length. If the array is variable length the length of the array must be provided in some way. In this case we explicitly pass in a length. Another way might be to end the array with <code>0</code>, if you don&#39;t otherwise expect any <code>0</code> to appear in your data. For this reason, Platypus adds a zero (or <code>NULL</code> in the case of pointers) element at the end of the array when passing it into a variable length array type, although we do not use it here.</p> <p>With Platypus you can declare an array type as being either fixed or variable length. Because Perl stores arrays in completely differently than C, a temporary array is created by Platypus, passed into the C function as a pointer. When the function returns the array is re-read by Platypus and the Perl array is updated with the new values. The temporary array is then freed.</p> <p>You can use any primitive type for arrays, even <code>string</code>. You can also return an array from a function. As in our discussion about strings, when you return an array the value is copied, which is usually what you want.</p> <h2 id="Pointers-as-Arrays"><a id="Pointers1"></a>Pointers as Arrays</h2> <h3 id="C-Source6"><a id="C8"></a>C Source</h3> <pre><code>#include &lt;stdlib.h&gt; int array_sum(const int *a) { int i, sum; if(a == NULL) return -1; for(i=0, sum=0; a[i] != 0; i++) sum += a[i]; return sum; }</code></pre> <h3 id="Perl-Source8"><a id="Perl8"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; &#39;./array_sum.so&#39;, ); $ffi-&gt;attach( array_sum =&gt; [&#39;int*&#39;] =&gt; &#39;int&#39; ); print array_sum(undef), &quot;\n&quot;; # -1 print array_sum([0]), &quot;\n&quot;; # 0 print array_sum([1,2,3,0]), &quot;\n&quot;; # 6</code></pre> <h3 id="Execute8">Execute</h3> <pre><code>$ cc -shared -o array_sum.so array_sum.c $ perl array_sum.pl -1 0 6</code></pre> <h3 id="Discussion8">Discussion</h3> <p>Starting with the Platypus version 2 API, you can also pass an array reference in to a pointer argument.</p> <p>In C pointer and array arguments are often used somewhat interchangeably. In this example we have an <code>array_sum</code> function that takes a zero terminated array of integers and computes the sum. If the pointer to the array is zero (<code>0</code>) then we return <code>-1</code> to indicate an error.</p> <p>This is the main advantage from Perl for using pointer argument rather than an array one: the array argument will not let you pass in <code>undef</code> / <code>NULL</code>.</p> <h2 id="Sending-Strings-to-GUI-on-Unix-with-libnotify"><a id="Sending"></a>Sending Strings to GUI on Unix with libnotify</h2> <h3 id="C-API2"><a id="C9"></a>C API</h3> <p><a href="https://developer-old.gnome.org/libnotify/unstable">Libnotify Reference Manual</a></p> <h3 id="Perl-Source9"><a id="Perl9"></a>Perl Source</h3> <pre><code>use FFI::CheckLib; use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; find_lib_or_die(lib =&gt; &#39;notify&#39;), ); $ffi-&gt;attach( notify_init =&gt; [&#39;string&#39;] ); $ffi-&gt;attach( notify_uninit =&gt; [] ); $ffi-&gt;attach( notify_notification_new =&gt; [&#39;string&#39;, &#39;string&#39;, &#39;string&#39;] =&gt; &#39;opaque&#39; ); $ffi-&gt;attach( notify_notification_show =&gt; [&#39;opaque&#39;, &#39;opaque&#39;] ); my $message = join &quot;\n&quot;, &quot;Hello from Platypus!&quot;, &quot;Welcome to the fun&quot;, &quot;world of FFI&quot;; notify_init(&#39;Platypus Hello&#39;); my $n = notify_notification_new(&#39;Platypus Hello World&#39;, $message, &#39;dialog-information&#39;); notify_notification_show($n, undef); notify_uninit();</code></pre> <h3 id="Execute9">Execute</h3> <pre><code>$ perl notify.pl</code></pre> <p>And this is what it will look like:</p> <div> <div> <img alt="Test" src="/static/images/gray.png" /> </div> </div> <h3 id="Discussion9">Discussion</h3> <p>The GNOME project provides an API to send notifications to its desktop environment. Nothing here is particularly new: all of the types and techniques are ones that we have seen before, except we are using a third party library, instead of using our own C code or the standard C library functions.</p> <p>When using a third party library you have to know the name or location of it, which is not typically portable, so here we use <a href="/pod/FFI::CheckLib">FFI::CheckLib</a>&#39;s <a href="/pod/FFI::CheckLib#find_lib_or_die">find_lib_or_die function</a>. If the library is not found the script will die with a useful diagnostic. <a href="/pod/FFI::CheckLib">FFI::CheckLib</a> has a number of useful features and will integrate nicely with <a href="/pod/Alien::Build">Alien::Build</a> based <a href="/pod/Alien">Alien</a>s.</p> <h2 id="The-Win32-API-with-MessageBoxW"><a id="The1"></a>The Win32 API with MessageBoxW</h2> <h3 id="Win32-API"><a id="Win32"></a>Win32 API</h3> <p><a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxw">MessageBoxW function (winuser.h)</a></p> <h3 id="Perl-Source10"><a id="Perl10"></a>Perl Source</h3> <pre><code>use utf8; use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; [undef], ); # see FFI::Platypus::Lang::Win32 $ffi-&gt;lang(&#39;Win32&#39;); # Send a Unicode string to the Windows API MessageBoxW function. use constant MB_OK =&gt; 0x00000000; use constant MB_DEFAULT_DESKTOP_ONLY =&gt; 0x00020000; $ffi-&gt;attach( [MessageBoxW =&gt; &#39;MessageBox&#39;] =&gt; [ &#39;HWND&#39;, &#39;LPCWSTR&#39;, &#39;LPCWSTR&#39;, &#39;UINT&#39;] =&gt; &#39;int&#39; ); MessageBox(undef, &quot;I &#x2764;&#xFE0F; Platypus&quot;, &quot;Confession&quot;, MB_OK|MB_DEFAULT_DESKTOP_ONLY);</code></pre> <h3 id="Execute10">Execute</h3> <pre><code>$ perl win32_messagebox.pl</code></pre> <p>And this is what it will look like:</p> <div> <div> <img alt="Test" src="/static/images/gray.png" /> </div> </div> <h3 id="Discussion10">Discussion</h3> <p>The API used by Microsoft Windows presents some unique challenges. On 32 bit systems a different ABI is used than what is used by the standard C library. It also provides a rats nest of type aliases. Finally if you want to talk Unicode to any of the Windows API you will need to use <code>UTF-16LE</code> instead of <code>UTF-8</code> which is native to Perl. (The Win32 API refers to these as <code>LPWSTR</code> and <code>LPCWSTR</code> types). As much as possible the Win32 &quot;language&quot; plugin attempts to handle these challenges transparently. For more details see <a href="/pod/FFI::Platypus::Lang::Win32">FFI::Platypus::Lang::Win32</a>.</p> <h3 id="Discussion11">Discussion</h3> <p>The libnotify library is a desktop GUI notification system for the GNOME Desktop environment. This script sends a notification event that should show up as a balloon, for me it did so in the upper right hand corner of my screen.</p> <h2 id="Structured-Data-Records-(by-pointer-or-by-reference)"><a id="Structured"></a><a id="Structured-Data-Records-by-pointer-or-by-reference"></a>Structured Data Records (by pointer or by reference)</h2> <h3 id="C-API3"><a id="C10"></a>C API</h3> <p><a href="https://en.cppreference.com/w/c/chrono/localtime">cppreference - localtime</a></p> <h3 id="Perl-Source11"><a id="Perl11"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; use FFI::C; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; [undef], ); FFI::C-&gt;ffi($ffi); package Unix::TimeStruct { FFI::C-&gt;struct(tm =&gt; [ tm_sec =&gt; &#39;int&#39;, tm_min =&gt; &#39;int&#39;, tm_hour =&gt; &#39;int&#39;, tm_mday =&gt; &#39;int&#39;, tm_mon =&gt; &#39;int&#39;, tm_year =&gt; &#39;int&#39;, tm_wday =&gt; &#39;int&#39;, tm_yday =&gt; &#39;int&#39;, tm_isdst =&gt; &#39;int&#39;, tm_gmtoff =&gt; &#39;long&#39;, _tm_zone =&gt; &#39;opaque&#39;, ]); # For now &#39;string&#39; is unsupported by FFI::C, but we # can cast the time zone from an opaque pointer to # string. sub tm_zone { my $self = shift; $ffi-&gt;cast(&#39;opaque&#39;, &#39;string&#39;, $self-&gt;_tm_zone); } # attach the C localtime function $ffi-&gt;attach( localtime =&gt; [&#39;time_t*&#39;] =&gt; &#39;tm&#39;, sub { my($inner, $class, $time) = @_; $time = time unless defined $time; $inner-&gt;(\$time); }); } # now we can actually use our Unix::TimeStruct class my $time = Unix::TimeStruct-&gt;localtime; printf &quot;time is %d:%d:%d %s\n&quot;, $time-&gt;tm_hour, $time-&gt;tm_min, $time-&gt;tm_sec, $time-&gt;tm_zone;</code></pre> <h3 id="Execute11">Execute</h3> <pre><code>$ perl time_struct.pl time is 3:48:19 MDT</code></pre> <h3 id="Discussion12">Discussion</h3> <p>C and other machine code languages frequently provide interfaces that include structured data records (defined using the <code>struct</code> keyword in C). Some libraries will provide an API which you are expected to read or write before and/or after passing them along to the library.</p> <p>For C pointers to <code>strict</code>, <code>union</code>, nested <code>struct</code> and nested <code>union</code> structures, the easiest interface to use is via <a href="/pod/FFI::C">FFI::C</a>. If you are working with a <code>struct</code> that must be passed by value (not pointers), then you will want to use <a href="/pod/FFI::Platypus::Record">FFI::Platypus::Record</a> class instead. We will discuss an example of that next.</p> <p>The C <code>localtime</code> function takes a pointer to a C struct. We simply define the members of the struct using the <a href="/pod/FFI::C">FFI::C</a> <code>struct</code> method. Because we used the <code>ffi</code> method to tell <a href="/pod/FFI::C">FFI::C</a> to use our local instance of <a href="/pod/FFI::Platypus">FFI::Platypus</a> it registers the <code>tm</code> type for us, and we can just start using it as a return type!</p> <h2 id="Structured-Data-Records-(on-stack-or-by-value)"><a id="Structured1"></a><a id="Structured-Data-Records-on-stack-or-by-value"></a>Structured Data Records (on stack or by value)</h2> <h3 id="C-Source7"><a id="C11"></a>C Source</h3> <pre><code>#include &lt;stdint.h&gt; #include &lt;string.h&gt; typedef struct color_t { char name[8]; uint8_t red; uint8_t green; uint8_t blue; } color_t; color_t color_increase_red(color_t color, uint8_t amount) { strcpy(color.name, &quot;reddish&quot;); color.red += amount; return color; }</code></pre> <h3 id="Perl-Source12"><a id="Perl12"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; &#39;./color.so&#39; ); package Color { use FFI::Platypus::Record; use overload &#39;&quot;&quot;&#39; =&gt; sub { shift-&gt;as_string }, bool =&gt; sub { 1 }, fallback =&gt; 1; record_layout_1($ffi, &#39;string(8)&#39; =&gt; &#39;name&#39;, qw( uint8 red uint8 green uint8 blue )); sub as_string { my($self) = @_; sprintf &quot;%s: [red:%02x green:%02x blue:%02x]&quot;, $self-&gt;name, $self-&gt;red, $self-&gt;green, $self-&gt;blue; } } $ffi-&gt;type(&#39;record(Color)&#39; =&gt; &#39;color_t&#39;); $ffi-&gt;attach( color_increase_red =&gt; [&#39;color_t&#39;,&#39;uint8&#39;] =&gt; &#39;color_t&#39; ); my $gray = Color-&gt;new( name =&gt; &#39;gray&#39;, red =&gt; 0xDC, green =&gt; 0xDC, blue =&gt; 0xDC, ); my $slightly_red = color_increase_red($gray, 20); print &quot;$gray\n&quot;; print &quot;$slightly_red\n&quot;;</code></pre> <h3 id="Execute12">Execute</h3> <pre><code>$ cc -shared -o color.so color.c $ perl color.pl gray: [red:dc green:dc blue:dc] reddish: [red:f0 green:dc blue:dc]</code></pre> <h3 id="Discussion13">Discussion</h3> <p>In the C source of this example, we pass a C <code>struct</code> by value by copying it onto the stack. On the Perl side we create a <code>Color</code> class using <a href="/pod/FFI::Platypus::Record">FFI::Platypus::Record</a>, which allows us to pass the structure the way the C source wants us to.</p> <p>Generally you should only reach for <a href="/pod/FFI::Platypus::Record">FFI::Platypus::Record</a> if you need to pass small records on the stack like this. For more complicated (including nested) data you want to use <a href="/pod/FFI::C">FFI::C</a> using pointers.</p> <h2 id="Avoiding-Copy-Using-Memory-Windows-(with-libzmq3)"><a id="Avoiding"></a><a id="Avoiding-Copy-Using-Memory-Windows-with-libzmq3"></a>Avoiding Copy Using Memory Windows (with libzmq3)</h2> <h3 id="C-API4"><a id="C12"></a>C API</h3> <p><a href="http://api.zeromq.org/3-2:_start">&Oslash;MQ/3.2.6 API Reference</a></p> <h3 id="Perl-Source13"><a id="Perl13"></a>Perl Source</h3> <pre><code>use constant ZMQ_IO_THREADS =&gt; 1; use constant ZMQ_MAX_SOCKETS =&gt; 2; use constant ZMQ_REQ =&gt; 3; use constant ZMQ_REP =&gt; 4; use FFI::CheckLib qw( find_lib_or_die ); use FFI::Platypus 2.00; use FFI::Platypus::Memory qw( malloc ); use FFI::Platypus::Buffer qw( scalar_to_buffer window ); my $endpoint = &quot;ipc://zmq-ffi-$$&quot;; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; find_lib_or_die lib =&gt; &#39;zmq&#39;, ); $ffi-&gt;attach(zmq_version =&gt; [&#39;int*&#39;, &#39;int*&#39;, &#39;int*&#39;] =&gt; &#39;void&#39;); my($major,$minor,$patch); zmq_version(\$major, \$minor, \$patch); print &quot;libzmq version $major.$minor.$patch\n&quot;; die &quot;this script only works with libzmq 3 or better&quot; unless $major &gt;= 3; $ffi-&gt;type(&#39;opaque&#39; =&gt; &#39;zmq_context&#39;); $ffi-&gt;type(&#39;opaque&#39; =&gt; &#39;zmq_socket&#39;); $ffi-&gt;type(&#39;opaque&#39; =&gt; &#39;zmq_msg_t&#39;); $ffi-&gt;attach(zmq_ctx_new =&gt; [] =&gt; &#39;zmq_context&#39;); $ffi-&gt;attach(zmq_ctx_set =&gt; [&#39;zmq_context&#39;, &#39;int&#39;, &#39;int&#39;] =&gt; &#39;int&#39;); $ffi-&gt;attach(zmq_socket =&gt; [&#39;zmq_context&#39;, &#39;int&#39;] =&gt; &#39;zmq_socket&#39;); $ffi-&gt;attach(zmq_connect =&gt; [&#39;opaque&#39;, &#39;string&#39;] =&gt; &#39;int&#39;); $ffi-&gt;attach(zmq_bind =&gt; [&#39;zmq_socket&#39;, &#39;string&#39;] =&gt; &#39;int&#39;); $ffi-&gt;attach(zmq_send =&gt; [&#39;zmq_socket&#39;, &#39;opaque&#39;, &#39;size_t&#39;, &#39;int&#39;] =&gt; &#39;int&#39;); $ffi-&gt;attach(zmq_msg_init =&gt; [&#39;zmq_msg_t&#39;] =&gt; &#39;int&#39;); $ffi-&gt;attach(zmq_msg_recv =&gt; [&#39;zmq_msg_t&#39;, &#39;zmq_socket&#39;, &#39;int&#39;] =&gt; &#39;int&#39;); $ffi-&gt;attach(zmq_msg_data =&gt; [&#39;zmq_msg_t&#39;] =&gt; &#39;opaque&#39;); $ffi-&gt;attach(zmq_errno =&gt; [] =&gt; &#39;int&#39;); $ffi-&gt;attach(zmq_strerror =&gt; [&#39;int&#39;] =&gt; &#39;string&#39;); my $context = zmq_ctx_new(); zmq_ctx_set($context, ZMQ_IO_THREADS, 1); my $socket1 = zmq_socket($context, ZMQ_REQ); zmq_connect($socket1, $endpoint); my $socket2 = zmq_socket($context, ZMQ_REP); zmq_bind($socket2, $endpoint); { # send our $sent_message = &quot;hello there&quot;; my($pointer, $size) = scalar_to_buffer $sent_message; my $r = zmq_send($socket1, $pointer, $size, 0); die zmq_strerror(zmq_errno()) if $r == -1; } { # recv my $msg_ptr = malloc 100; zmq_msg_init($msg_ptr); my $size = zmq_msg_recv($msg_ptr, $socket2, 0); die zmq_strerror(zmq_errno()) if $size == -1; my $data_ptr = zmq_msg_data($msg_ptr); window(my $recv_message, $data_ptr, $size); print &quot;recv_message = $recv_message\n&quot;; }</code></pre> <h3 id="Execute13">Execute</h3> <pre><code>$ perl zmq3.pl libzmq version 4.3.4 recv_message = hello there</code></pre> <h3 id="Discussion14">Discussion</h3> <p>&Oslash;MQ is a high-performance asynchronous messaging library. There are a few things to note here.</p> <p>Firstly, sometimes there may be multiple versions of a library in the wild and you may need to verify that the library on a system meets your needs (alternatively you could support multiple versions and configure your bindings dynamically). Here we use <code>zmq_version</code> to ask libzmq which version it is.</p> <p><code>zmq_version</code> returns the version number via three integer pointer arguments, so we use the pointer to integer type: <code>int *</code>. In order to pass pointer types, we pass a reference. In this case it is a reference to an undefined value, because zmq_version will write into the pointers the output values, but you can also pass in references to integers, floating point values and opaque pointer types. When the function returns the <code>$major</code> variable (and the others) has been updated and we can use it to verify that it supports the API that we require.</p> <p>Finally we attach the necessary functions, send and receive a message. When we receive we use the <a href="/pod/FFI::Platypus::Buffer">FFI::Platypus::Buffer</a> function <code>window</code> instead of <code>buffer_to_scalar</code>. They have a similar effect in that the provide a scalar from a region of memory, but <code>window</code> doesn&#39;t have to copy any data, so it is cheaper to call. The only downside is that a windowed scalar like this is read-only.</p> <h2 id="libarchive">libarchive</h2> <h3 id="C-Documentation"><a id="C13"></a>C Documentation</h3> <p><a href="https://www.libarchive.org/">https://www.libarchive.org/</a></p> <h3 id="Perl-Source14"><a id="Perl14"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; use FFI::CheckLib qw( find_lib_or_die ); # This example uses FreeBSD&#39;s libarchive to list the contents of any # archive format that it suppors. We&#39;ve also filled out a part of # the ArchiveWrite class that could be used for writing archive formats # supported by libarchive my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; find_lib_or_die(lib =&gt; &#39;archive&#39;), ); $ffi-&gt;type(&#39;object(Archive)&#39; =&gt; &#39;archive_t&#39;); $ffi-&gt;type(&#39;object(ArchiveRead)&#39; =&gt; &#39;archive_read_t&#39;); $ffi-&gt;type(&#39;object(ArchiveWrite)&#39; =&gt; &#39;archive_write_t&#39;); $ffi-&gt;type(&#39;object(ArchiveEntry)&#39; =&gt; &#39;archive_entry_t&#39;); package Archive { # base class is &quot;abstract&quot; having no constructor or destructor $ffi-&gt;mangler(sub { my($name) = @_; &quot;archive_$name&quot;; }); $ffi-&gt;attach( error_string =&gt; [&#39;archive_t&#39;] =&gt; &#39;string&#39; ); } package ArchiveRead { our @ISA = qw( Archive ); $ffi-&gt;mangler(sub { my($name) = @_; &quot;archive_read_$name&quot;; }); $ffi-&gt;attach( new =&gt; [&#39;string&#39;] =&gt; &#39;archive_read_t&#39; ); $ffi-&gt;attach( [ free =&gt; &#39;DESTROY&#39; ] =&gt; [&#39;archive_t&#39;] ); $ffi-&gt;attach( support_filter_all =&gt; [&#39;archive_t&#39;] =&gt; &#39;int&#39; ); $ffi-&gt;attach( support_format_all =&gt; [&#39;archive_t&#39;] =&gt; &#39;int&#39; ); $ffi-&gt;attach( open_filename =&gt; [&#39;archive_t&#39;,&#39;string&#39;,&#39;size_t&#39;] =&gt; &#39;int&#39; ); $ffi-&gt;attach( next_header2 =&gt; [&#39;archive_t&#39;, &#39;archive_entry_t&#39; ] =&gt; &#39;int&#39; ); $ffi-&gt;attach( data_skip =&gt; [&#39;archive_t&#39;] =&gt; &#39;int&#39; ); # ... define additional read methods } package ArchiveWrite { our @ISA = qw( Archive ); $ffi-&gt;mangler(sub { my($name) = @_; &quot;archive_write_$name&quot;; }); $ffi-&gt;attach( new =&gt; [&#39;string&#39;] =&gt; &#39;archive_write_t&#39; ); $ffi-&gt;attach( [ free =&gt; &#39;DESTROY&#39; ] =&gt; [&#39;archive_write_t&#39;] ); # ... define additional write methods } package ArchiveEntry { $ffi-&gt;mangler(sub { my($name) = @_; &quot;archive_entry_$name&quot;; }); $ffi-&gt;attach( new =&gt; [&#39;string&#39;] =&gt; &#39;archive_entry_t&#39; ); $ffi-&gt;attach( [ free =&gt; &#39;DESTROY&#39; ] =&gt; [&#39;archive_entry_t&#39;] ); $ffi-&gt;attach( pathname =&gt; [&#39;archive_entry_t&#39;] =&gt; &#39;string&#39; ); # ... define additional entry methods } use constant ARCHIVE_OK =&gt; 0; # this is a Perl version of the C code here: # https://github.com/libarchive/libarchive/wiki/Examples#List_contents_of_Archive_stored_in_File my $archive_filename = shift @ARGV; unless(defined $archive_filename) { print &quot;usage: $0 archive.tar\n&quot;; exit; } my $archive = ArchiveRead-&gt;new; $archive-&gt;support_filter_all; $archive-&gt;support_format_all; my $r = $archive-&gt;open_filename($archive_filename, 1024); die &quot;error opening $archive_filename: &quot;, $archive-&gt;error_string unless $r == ARCHIVE_OK; my $entry = ArchiveEntry-&gt;new; while($archive-&gt;next_header2($entry) == ARCHIVE_OK) { print $entry-&gt;pathname, &quot;\n&quot;; $archive-&gt;data_skip; }</code></pre> <h3 id="Execute14">Execute</h3> <pre><code>$ perl archive_object.pl archive.tar archive.pl archive_object.pl</code></pre> <h3 id="Discussion15">Discussion</h3> <p>libarchive is the implementation of <code>tar</code> for FreeBSD provided as a library and available on a number of platforms.</p> <p>One interesting thing about libarchive is that it provides a kind of object oriented interface via opaque pointers. This example creates an abstract class <code>Archive</code>, and concrete classes <code>ArchiveWrite</code>, <code>ArchiveRead</code> and <code>ArchiveEntry</code>. The concrete classes can even be inherited from and extended just like any Perl classes because of the way the custom types are implemented. We use Platypus&#39;s <code>object</code> type for this implementation, which is a wrapper around an <code>opaque</code> (can also be an integer) type that is blessed into a particular class.</p> <p>Another advanced feature of this example is that we define a mangler to modify the symbol resolution for each class. This means we can do this when we define a method for Archive:</p> <pre><code>$ffi-&gt;attach( support_filter_all =&gt; [&#39;archive_t&#39;] =&gt; &#39;int&#39; );</code></pre> <p>Rather than this:</p> <pre><code>$ffi-&gt;attach( [ archive_read_support_filter_all =&gt; &#39;support_read_filter_all&#39; ] =&gt; [&#39;archive_t&#39;] =&gt; &#39;int&#39; ); );</code></pre> <p>As nice as <code>libarchive</code> is, note that we have to shoehorn then <code>archive_free</code> function name into the Perl convention of using <code>DESTROY</code> as the destructor. We can easily do that for just this one function with:</p> <pre><code>$ffi-&gt;attach( [ free =&gt; &#39;DESTROY&#39; ] =&gt; [&#39;archive_t&#39;] );</code></pre> <p>The <code>libarchive</code> is a large library with hundreds of methods. For comprehensive FFI bindings for <code>libarchive</code> see <a href="/pod/Archive::Libarchive">Archive::Libarchive</a>.</p> <h2 id="unix-open"><a id="unix"></a>unix open</h2> <h3 id="C-API5"><a id="C14"></a>C API</h3> <p><a href="https://www.geeksforgeeks.org/input-output-system-calls-c-create-open-close-read-write/">Input-output system calls in C</a></p> <h3 id="Perl-Source15"><a id="Perl15"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; { package FD; use constant O_RDONLY =&gt; 0; use constant O_WRONLY =&gt; 1; use constant O_RDWR =&gt; 2; use constant IN =&gt; bless \do { my $in=0 }, __PACKAGE__; use constant OUT =&gt; bless \do { my $out=1 }, __PACKAGE__; use constant ERR =&gt; bless \do { my $err=2 }, __PACKAGE__; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; [undef]); $ffi-&gt;type(&#39;object(FD,int)&#39; =&gt; &#39;fd&#39;); $ffi-&gt;attach( [ &#39;open&#39; =&gt; &#39;new&#39; ] =&gt; [ &#39;string&#39;, &#39;int&#39;, &#39;mode_t&#39; ] =&gt; &#39;fd&#39; =&gt; sub { my($xsub, $class, $fn, @rest) = @_; my $fd = $xsub-&gt;($fn, @rest); die &quot;error opening $fn $!&quot; if $$fd == -1; $fd; }); $ffi-&gt;attach( write =&gt; [&#39;fd&#39;, &#39;string&#39;, &#39;size_t&#39; ] =&gt; &#39;ssize_t&#39; ); $ffi-&gt;attach( read =&gt; [&#39;fd&#39;, &#39;string&#39;, &#39;size_t&#39; ] =&gt; &#39;ssize_t&#39; ); $ffi-&gt;attach( close =&gt; [&#39;fd&#39;] =&gt; &#39;int&#39; ); } my $fd = FD-&gt;new(&quot;file_handle.txt&quot;, FD::O_RDONLY); my $buffer = &quot;\0&quot; x 10; while(my $br = $fd-&gt;read($buffer, 10)) { FD::OUT-&gt;write($buffer, $br); } $fd-&gt;close;</code></pre> <h3 id="Execute15">Execute</h3> <pre><code>$ perl file_handle.pl Hello World</code></pre> <h3 id="Discussion16">Discussion</h3> <p>The Unix file system calls use an integer handle for each open file. We can use the same <code>object</code> type that we used for libarchive above, except we let platypus know that the underlying type is <code>int</code> instead of <code>opaque</code> (the latter being the default for the <code>object</code> type). Mainly just for demonstration since Perl has much better IO libraries, but now we have an OO interface to the Unix IO functions.</p> <h2 id="Varadic-Functions-(with-libcurl)"><a id="Varadic"></a><a id="Varadic-Functions-with-libcurl"></a>Varadic Functions (with libcurl)</h2> <h3 id="C-API6"><a id="C15"></a>C API</h3> <dl> <dt id="curl_easy_init"><a href="https://curl.se/libcurl/c/curl_easy_init.html">curl_easy_init</a></dt> <dd> </dd> <dt id="curl_easy_setopt"><a href="https://curl.se/libcurl/c/curl_easy_setopt.html">curl_easy_setopt</a></dt> <dd> </dd> <dt id="curl_easy_perform"><a href="https://curl.se/libcurl/c/curl_easy_perform.html">curl_easy_perform</a></dt> <dd> </dd> <dt id="curl_easy_cleanup"><a href="https://curl.se/libcurl/c/curl_easy_cleanup.html">curl_easy_cleanup</a></dt> <dd> </dd> <dt id="CURLOPT_URL"><a href="https://curl.se/libcurl/c/CURLOPT_URL.html">CURLOPT_URL</a></dt> <dd> </dd> </dl> <h3 id="Perl-Source16"><a id="Perl16"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; use FFI::CheckLib qw( find_lib_or_die ); use constant CURLOPT_URL =&gt; 10002; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; find_lib_or_die(lib =&gt; &#39;curl&#39;), ); my $curl_handle = $ffi-&gt;function( &#39;curl_easy_init&#39; =&gt; [] =&gt; &#39;opaque&#39; ) -&gt;call; $ffi-&gt;function( &#39;curl_easy_setopt&#39; =&gt; [&#39;opaque&#39;, &#39;enum&#39; ] =&gt; [&#39;string&#39;] ) -&gt;call($curl_handle, CURLOPT_URL, &quot;https://pl.atypus.org&quot; ); $ffi-&gt;function( &#39;curl_easy_perform&#39; =&gt; [&#39;opaque&#39; ] =&gt; &#39;enum&#39; ) -&gt;call($curl_handle); $ffi-&gt;function( &#39;curl_easy_cleanup&#39; =&gt; [&#39;opaque&#39; ] ) -&gt;call($curl_handle);</code></pre> <h3 id="Execute16">Execute</h3> <pre><code>$ perl curl.pl &lt;!doctype html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot; /&gt; &lt;title&gt;pl.atypus.org - Home for the Perl Platypus Project&lt;/title&gt; ...</code></pre> <h3 id="Discussion17">Discussion</h3> <p>The <a href="https://curl.se/">libcurl</a> library makes extensive use of &quot;varadic&quot; functions.</p> <p>The C programming language and ABI have the concept of &quot;varadic&quot; functions that can take a variable number and variable type of arguments. Assuming you have a <code>libffi</code> that supports it (and most modern systems should), then you can create bindings to a varadic function by providing two sets of array references, one for the fixed arguments (for reasons, C varadic functions must have at least one) and one for variable arguments. In this example we call <code>curl_easy_setopt</code> as a varadic function.</p> <p>For functions that have a large or infinite number of possible signatures it may be impracticable or impossible to attach them all. You can instead do as we did in this example, create a function object using the <a href="#function">function method</a> and call it immediately. This is not as performant either when you create or call as using the <a href="#attach">attach method</a>, but in some cases the performance penalty may be worth it or unavoidable.</p> <h2 id="Callbacks-(with-libcurl)"><a id="Callbacks"></a><a id="Callbacks-with-libcurl"></a>Callbacks (with libcurl)</h2> <h3 id="C-API7"><a id="C16"></a>C API</h3> <dl> <dt id="curl_easy_init1"><a href="https://curl.se/libcurl/c/curl_easy_init.html">curl_easy_init</a></dt> <dd> </dd> <dt id="curl_easy_setopt1"><a href="https://curl.se/libcurl/c/curl_easy_setopt.html">curl_easy_setopt</a></dt> <dd> </dd> <dt id="curl_easy_perform1"><a href="https://curl.se/libcurl/c/curl_easy_perform.html">curl_easy_perform</a></dt> <dd> </dd> <dt id="curl_easy_cleanup1"><a href="https://curl.se/libcurl/c/curl_easy_cleanup.html">curl_easy_cleanup</a></dt> <dd> </dd> <dt id="CURLOPT_URL1"><a href="https://curl.se/libcurl/c/CURLOPT_URL.html">CURLOPT_URL</a></dt> <dd> </dd> <dt id="CURLOPT_WRITEFUNCTION"><a href="https://curl.se/libcurl/c/CURLOPT_WRITEFUNCTION.html">CURLOPT_WRITEFUNCTION</a></dt> <dd> </dd> </dl> <h3 id="Perl-Source17"><a id="Perl17"></a>Perl Source</h3> <pre><code>use FFI::Platypus 2.00; use FFI::CheckLib qw( find_lib_or_die ); use FFI::Platypus::Buffer qw( window ); use constant CURLOPT_URL =&gt; 10002; use constant CURLOPT_WRITEFUNCTION =&gt; 20011; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2, lib =&gt; find_lib_or_die(lib =&gt; &#39;curl&#39;), ); my $curl_handle = $ffi-&gt;function( &#39;curl_easy_init&#39; =&gt; [] =&gt; &#39;opaque&#39; ) -&gt;call; $ffi-&gt;function( &#39;curl_easy_setopt&#39; =&gt; [ &#39;opaque&#39;, &#39;enum&#39; ] =&gt; [&#39;string&#39;] ) -&gt;call($curl_handle, CURLOPT_URL, &quot;https://pl.atypus.org&quot; ); my $html; my $closure = $ffi-&gt;closure(sub { my($ptr, $len, $num, $user) = @_; window(my $buf, $ptr, $len*$num); $html .= $buf; return $len*$num; }); $ffi-&gt;function( &#39;curl_easy_setopt&#39; =&gt; [ &#39;opaque&#39;, &#39;enum&#39; ] =&gt; [&#39;(opaque,size_t,size_t,opaque)-&gt;size_t&#39;] =&gt; &#39;enum&#39; ) -&gt;call($curl_handle, CURLOPT_WRITEFUNCTION, $closure); $ffi-&gt;function( &#39;curl_easy_perform&#39; =&gt; [ &#39;opaque&#39; ] =&gt; &#39;enum&#39; ) -&gt;call($curl_handle); $ffi-&gt;function( &#39;curl_easy_cleanup&#39; =&gt; [ &#39;opaque&#39; ] ) -&gt;call($curl_handle); if($html =~ /&lt;title&gt;(.*?)&lt;\/title&gt;/) { print &quot;$1\n&quot;; }</code></pre> <h3 id="Execute17">Execute</h3> <pre><code>$ perl curl_callback.pl pl.atypus.org - Home for the Perl Platypus Project</code></pre> <h3 id="Discussion18">Discussion</h3> <p>This example is similar to the previous one, except instead of letting <a href="https://curl.se">libcurl</a> write the content body to <code>STDOUT</code>, we give it a callback to send the data to instead. The <a href="#closure">closure method</a> can be used to create a callback function pointer that can be called from C. The type for the callback is in the form <code>(arg_type,arg_type,etc)-&gt;return_type</code> where the argument types are in parentheticals with an arrow between the argument types and the return type.</p> <p>Inside the closure or callback we use the <a href="/pod/FFI::Platypus::Buffer#window">window function</a> from <a href="/pod/FFI::Platypus::Buffer">FFI::Platypus::Buffer</a> again to avoid an <i>extra</i> copy. We still have to copy the buffer to append it to <code>$hmtl</code> but it is at least one less copy.</p> <h2 id="bundle-your-own-code"><a id="bundle1"></a>bundle your own code</h2> <h3 id="C-Source8"><a id="C17"></a>C Source</h3> <p><code>ffi/foo.c</code>:</p> <pre><code>#include &lt;ffi_platypus_bundle.h&gt; #include &lt;string.h&gt; typedef struct { char *name; int value; } foo_t; foo_t* foo__new(const char *class_name, const char *name, int value) { (void)class_name; foo_t *self = malloc( sizeof( foo_t ) ); self-&gt;name = strdup(name); self-&gt;value = value; return self; } const char * foo__name(foo_t *self) { return self-&gt;name; } int foo__value(foo_t *self) { return self-&gt;value; } void foo__DESTROY(foo_t *self) { free(self-&gt;name); free(self); }</code></pre> <h3 id="Perl-Source18"><a id="Perl18"></a>Perl Source</h3> <p><code>lib/Foo.pm</code>:</p> <pre><code>package Foo; use strict; use warnings; use FFI::Platypus 2.00; my $ffi = FFI::Platypus-&gt;new( api =&gt; 2 ); $ffi-&gt;type(&#39;object(Foo)&#39; =&gt; &#39;foo_t&#39;); $ffi-&gt;mangler(sub { my $name = shift; $name =~ s/^/foo__/; $name; }); $ffi-&gt;bundle; $ffi-&gt;attach( new =&gt; [ &#39;string&#39;, &#39;string&#39;, &#39;int&#39; ] =&gt; &#39;foo_t&#39; ); $ffi-&gt;attach( name =&gt; [ &#39;foo_t&#39; ] =&gt; &#39;string&#39; ); $ffi-&gt;attach( value =&gt; [ &#39;foo_t&#39; ] =&gt; &#39;int&#39; ); $ffi-&gt;attach( DESTROY =&gt; [ &#39;foo_t&#39; ] =&gt; &#39;void&#39; ); 1;</code></pre> <p><code>t/foo.t</code>:</p> <pre><code>use Test2::V0; use Foo; my $foo = Foo-&gt;new(&quot;platypus&quot;, 10); isa_ok $foo, &#39;Foo&#39;; is $foo-&gt;name, &quot;platypus&quot;; is $foo-&gt;value, 10; done_testing;</code></pre> <p><code>Makefile.PL</code>:</p> <pre><code>use ExtUtils::MakeMaker; use FFI::Build::MM; my $fbmm = FFI::Build::MM-&gt;new; WriteMakefile( $fbmm-&gt;mm_args( NAME =&gt; &#39;Foo&#39;, DISTNAME =&gt; &#39;Foo&#39;, VERSION =&gt; &#39;1.00&#39;, # ... ) ); sub MY::postamble { $fbmm-&gt;mm_postamble; }</code></pre> <h3 id="Execute18">Execute</h3> <p>With prove:</p> <pre><code>$ prove -lvm t/foo.t .. # Seeded srand with seed &#39;20221105&#39; from local date. ok 1 - Foo=SCALAR-&gt;isa(&#39;Foo&#39;) ok 2 ok 3 1..3 ok All tests successful. Files=1, Tests=3, 0 wallclock secs ( 0.00 usr 0.00 sys + 0.10 cusr 0.00 csys = 0.10 CPU) Result: PASS</code></pre> <p>With <a href="/pod/ExtUtils::MakeMaker">ExtUtils::MakeMaker</a>:</p> <pre><code>$ perl Makefile.PL Generating a Unix-style Makefile Writing Makefile for Foo Writing MYMETA.yml and MYMETA.json $ make cp lib/Foo.pm blib/lib/Foo.pm &quot;/home/ollisg/opt/perl/5.37.5/bin/perl5.37.5&quot; -MFFI::Build::MM=cmd -e fbx_build CC ffi/foo.c LD blib/lib/auto/share/dist/Foo/lib/libFoo.so $ make test &quot;/home/ollisg/opt/perl/5.37.5/bin/perl5.37.5&quot; -MFFI::Build::MM=cmd -e fbx_build &quot;/home/ollisg/opt/perl/5.37.5/bin/perl5.37.5&quot; -MFFI::Build::MM=cmd -e fbx_test PERL_DL_NONLAZY=1 &quot;/home/ollisg/opt/perl/5.37.5/bin/perl5.37.5&quot; &quot;-MExtUtils::Command::MM&quot; &quot;-MTest::Harness&quot; &quot;-e&quot; &quot;undef *Test::Harness::Switches; test_harness(0, &#39;blib/lib&#39;, &#39;blib/arch&#39;)&quot; t/*.t t/foo.t .. ok All tests successful. Files=1, Tests=3, 1 wallclock secs ( 0.00 usr 0.00 sys + 0.03 cusr 0.00 csys = 0.03 CPU) Result: PASS</code></pre> <h3 id="Discussion19">Discussion</h3> <p>You can bundle your own C code with your Perl extension. There are a number of reasons you might want to do this Sometimes you need to optimize a tight loop for speed. Or you might need a little bit of glue code for your bindings to a library that isn&#39;t inherently FFI friendly. Either way what you want is the <a href="/pod/FFI::Build">FFI::Build</a> system on the install step and the <a href="/pod/FFI::Platypus::Bundle">FFI::Platypus::Bundle</a> interface on the runtime step. If you are using <a href="/pod/Dist::Zilla">Dist::Zilla</a> for your distribution, you will also want to check out the <a href="/pod/Dist::Zilla::Plugin::FFI::Build">Dist::Zilla::Plugin::FFI::Build</a> plugin to make this as painless as possible.</p> <p>One of the nice things about the bundle interface is that it is smart enough to work with either <a href="/pod/App::Prove">App::Prove</a> or <a href="/pod/ExtUtils::MakeMaker">ExtUtils::MakeMaker</a>. This means, unlike XS, you do not need to explicitly compile your C code in development mode, that will be done for you when you call <code>$ffi-&gt;bundle</code></p> <h1 id="FAQ">FAQ</h1> <h2 id="How-do-I-get-constants-defined-as-macros-in-C-header-files"><a id="How"></a>How do I get constants defined as macros in C header files</h2> <p>This turns out to be a challenge for any language calling into C, which frequently uses <code>#define</code> macros to define constants like so:</p> <pre><code>#define FOO_STATIC 1 #define FOO_DYNAMIC 2 #define FOO_OTHER 3</code></pre> <p>As macros are expanded and their definitions are thrown away by the C pre-processor there isn&#39;t any way to get the name/value mappings from the compiled dynamic library.</p> <p>You can manually create equivalent constants in your Perl source:</p> <pre><code>use constant FOO_STATIC =&gt; 1; use constant FOO_DYNAMIC =&gt; 2; use constant FOO_OTHER =&gt; 3;</code></pre> <p>If there are a lot of these types of constants you might want to consider using a tool (<a href="/pod/Convert::Binary::C">Convert::Binary::C</a> can do this) that can extract the constants for you.</p> <p>See also the &quot;Integer constants&quot; example in <a href="/pod/FFI::Platypus::Type">FFI::Platypus::Type</a>.</p> <p>You can also use the new Platypus bundle interface to define Perl constants from C space. This is more reliable, but does require a compiler at install time. It is recommended mainly for writing bindings against libraries that have constants that can vary widely from platform to platform. See <a href="/pod/FFI::Platypus::Constant">FFI::Platypus::Constant</a> for details.</p> <h2 id="What-about-enums?"><a id="What"></a><a id="What-about-enums"></a>What about enums?</h2> <p>The C enum types are integers. The underlying type is up to the platform, so Platypus provides <code>enum</code> and <code>senum</code> types for unsigned and singed enums respectively. At least some compilers treat signed and unsigned enums as different types. The enum <i>values</i> are essentially the same as macro constants described above from an FFI perspective. Thus the process of defining enum values is identical to the process of defining macro constants in Perl.</p> <p>For more details on enumerated types see <a href="/pod/FFI::Platypus::Type#Enum-types">&quot;Enum types&quot; in FFI::Platypus::Type</a>.</p> <p>There is also a type plugin (<a href="/pod/FFI::Platypus::Type::Enum">FFI::Platypus::Type::Enum</a>) that can be helpful in writing interfaces that use enums.</p> <h2 id="Memory-leaks"><a id="Memory"></a>Memory leaks</h2> <p>There are a couple places where memory is allocated, but never deallocated that may look like memory leaks by tools designed to find memory leaks like valgrind. This memory is intended to be used for the lifetime of the perl process so there normally this isn&#39;t a problem unless you are embedding a Perl interpreter which doesn&#39;t closely match the lifetime of your overall application.</p> <p>Specifically:</p> <dl> <dt id="type-cache"><a id="type1"></a>type cache</dt> <dd> <p>some types are cached and not freed. These are needed as long as there are FFI functions that could be called.</p> </dd> <dt id="attached-functions"><a id="attached"></a>attached functions</dt> <dd> <p>Attaching a function as an xsub will definitely allocate memory that won&#39;t be freed because the xsub could be called at any time, including in <code>END</code> blocks.</p> </dd> </dl> <p>The Platypus team plans on adding a hook to free some of this &quot;leaked&quot; memory for use cases where Perl and Platypus are embedded in a larger application where the lifetime of the Perl process is significantly smaller than the overall lifetime of the whole process.</p> <h2 id="I-get-seg-faults-on-some-platforms-but-not-others-with-a-library-using-pthreads."><a id="I"></a><a id="I-get-seg-faults-on-some-platforms-but-not-others-with-a-library-using-pthreads"></a>I get seg faults on some platforms but not others with a library using pthreads.</h2> <p>On some platforms, Perl isn&#39;t linked with <code>libpthreads</code> if Perl threads are not enabled. On some platforms this doesn&#39;t seem to matter, <code>libpthreads</code> can be loaded at runtime without much ill-effect. (Linux from my experience doesn&#39;t seem to mind one way or the other). Some platforms are not happy about this, and about the only thing that you can do about it is to build Perl such that it links with <code>libpthreads</code> even if it isn&#39;t a threaded Perl.</p> <p>This is not really an FFI issue, but a Perl issue, as you will have the same problem writing XS code for the such libraries.</p> <h2 id="Doesn&#39;t-work-on-Perl-5.10.0."><a id="Doesn"></a><a id="Doesnt-work-on-Perl-5.10.0"></a>Doesn&#39;t work on Perl 5.10.0.</h2> <p>The first point release of Perl 5.10 was buggy, and is not supported by Platypus. Please upgrade to a newer Perl.</p> <h1 id="CAVEATS">CAVEATS</h1> <p>Platypus and Native Interfaces like libffi rely on the availability of dynamic libraries. Things not supported include:</p> <dl> <dt id="Systems-that-lack-dynamic-library-support"><a id="Systems"></a>Systems that lack dynamic library support</dt> <dd> <p>Like MS-DOS</p> </dd> <dt id="Systems-that-are-not-supported-by-libffi"><a id="Systems1"></a>Systems that are not supported by libffi</dt> <dd> <p>Like OpenVMS</p> </dd> <dt id="Languages-that-do-not-support-using-dynamic-libraries-from-other-languages"><a id="Languages1"></a>Languages that do not support using dynamic libraries from other languages</dt> <dd> <p>This used to be the case with Google&#39;s Go, but is no longer the case. This is a problem for C / XS code as well.</p> </dd> <dt id="Languages-that-do-not-compile-to-machine-code"><a id="Languages2"></a>Languages that do not compile to machine code</dt> <dd> <p>Like .NET based languages and Java.</p> </dd> </dl> <p>The documentation has a bias toward using FFI / Platypus with C. This is my fault, as my background mainly in C/C++ programmer (when I am not writing Perl). In many places I use &quot;C&quot; as a short form for &quot;any language that can generate machine code and is callable from C&quot;. I welcome pull requests to the Platypus core to address this issue. In an attempt to ease usage of Platypus by non C programmers, I have written a number of foreign language plugins for various popular languages (see the SEE ALSO below). These plugins come with examples specific to those languages, and documentation on common issues related to using those languages with FFI. In most cases these are available for easy adoption for those with the know-how or the willingness to learn. If your language doesn&#39;t have a plugin YET, that is just because you haven&#39;t written it yet.</p> <h1 id="SUPPORT">SUPPORT</h1> <p>The intent of the <code>FFI-Platypus</code> team is to support the same versions of Perl that are supported by the Perl toolchain. As of this writing that means 5.16 and better.</p> <p>IRC: #native on irc.perl.org</p> <p><a href="http://chat.mibbit.com/#native@irc.perl.org">(click for instant chat room login)</a></p> <p>If something does not work the way you think it should, or if you have a feature request, please open an issue on this project&#39;s GitHub Issue tracker:</p> <p><a href="https://github.com/perlFFI/FFI-Platypus/issues">https://github.com/perlFFI/FFI-Platypus/issues</a></p> <h1 id="CONTRIBUTING">CONTRIBUTING</h1> <p>If you have implemented a new feature or fixed a bug then you may make a pull request on this project&#39;s GitHub repository:</p> <p><a href="https://github.com/PerlFFI/FFI-Platypus/pulls">https://github.com/PerlFFI/FFI-Platypus/pulls</a></p> <p>This project is developed using <a href="/pod/Dist::Zilla">Dist::Zilla</a>. The project&#39;s git repository also comes with the <code>Makefile.PL</code> file necessary for building, testing (and even installing if necessary) without <a href="/pod/Dist::Zilla">Dist::Zilla</a>. Please keep in mind though that these files are generated so if changes need to be made to those files they should be done through the project&#39;s <code>dist.ini</code> file. If you do use <a href="/pod/Dist::Zilla">Dist::Zilla</a> and already have the necessary plugins installed, then I encourage you to run <code>dzil test</code> before making any pull requests. This is not a requirement, however, I am happy to integrate especially smaller patches that need tweaking to fit the project standards. I may push back and ask you to write a test case or alter the formatting of a patch depending on the amount of time I have and the amount of code that your patch touches.</p> <p>This project&#39;s GitHub issue tracker listed above is not Write-Only. If you want to contribute then feel free to browse through the existing issues and see if there is something you feel you might be good at and take a whack at the problem. I frequently open issues myself that I hope will be accomplished by someone in the future but do not have time to immediately implement myself.</p> <p>Another good area to help out in is documentation. I try to make sure that there is good document coverage, that is there should be documentation describing all the public features and warnings about common pitfalls, but an outsider&#39;s or alternate view point on such things would be welcome; if you see something confusing or lacks sufficient detail I encourage documentation only pull requests to improve things.</p> <p>The Platypus distribution comes with a test library named <code>libtest</code> that is normally automatically built by <code>./Build test</code>. If you prefer to use <code>prove</code> or run tests directly, you can use the <code>./Build libtest</code> command to build it. Example:</p> <pre><code>% perl Makefile.PL % make % make ffi-test % prove -bv t # or an individual test % perl -Mblib t/ffi_platypus_memory.t</code></pre> <p>The build process also respects these environment variables:</p> <dl> <dt id="FFI_PLATYPUS_DEBUG_FAKE32">FFI_PLATYPUS_DEBUG_FAKE32</dt> <dd> <p>When building Platypus on 32 bit Perls, it will use the <a href="/pod/Math::Int64">Math::Int64</a> C API and make <a href="/pod/Math::Int64">Math::Int64</a> a prerequisite. Setting this environment variable will force Platypus to build with both of those options on a 64 bit Perl as well.</p> <pre><code>% env FFI_PLATYPUS_DEBUG_FAKE32=1 perl Makefile.PL DEBUG_FAKE32: + making Math::Int64 a prereq + Using Math::Int64&#39;s C API to manipulate 64 bit values Generating a Unix-style Makefile Writing Makefile for FFI::Platypus Writing MYMETA.yml and MYMETA.json %</code></pre> </dd> <dt id="FFI_PLATYPUS_NO_ALLOCA">FFI_PLATYPUS_NO_ALLOCA</dt> <dd> <p>Platypus uses the non-standard and somewhat controversial C function <code>alloca</code> by default on platforms that support it. I believe that Platypus uses it responsibly to allocate small amounts of memory for argument type parameters, and does not use it to allocate large structures like arrays or buffers. If you prefer not to use <code>alloca</code> despite these precautions, then you can turn its use off by setting this environment variable when you run <code>Makefile.PL</code>:</p> <pre><code>helix% env FFI_PLATYPUS_NO_ALLOCA=1 perl Makefile.PL NO_ALLOCA: + alloca() will not be used, even if your platform supports it. Generating a Unix-style Makefile Writing Makefile for FFI::Platypus Writing MYMETA.yml and MYMETA.json</code></pre> </dd> <dt id="V">V</dt> <dd> <p>When building platypus may hide some of the excessive output when probing and building, unless you set <code>V</code> to a true value.</p> <pre><code>% env V=1 perl Makefile.PL % make V=1 ...</code></pre> </dd> </dl> <h2 id="Coding-Guidelines"><a id="Coding"></a>Coding Guidelines</h2> <ul> <li><p>Do not hesitate to make code contribution. Making useful contributions is more important than following byzantine bureaucratic coding regulations. We can always tweak things later.</p> </li> <li><p>Please make an effort to follow existing coding style when making pull requests.</p> </li> <li><p>The intent of the <code>FFI-Platypus</code> team is to support the same versions of Perl that are supported by the Perl toolchain. As of this writing that means 5.16 and better. As such, please do not include any code that requires a newer version of Perl.</p> </li> </ul> <h2 id="Performance-Testing"><a id="Performance"></a>Performance Testing</h2> <p>As Mark Twain was fond of saying there are four types of lies: lies, damn lies, statistics and benchmarks. That being said, it can sometimes be helpful to compare the runtime performance of Platypus if you are making significant changes to the Platypus Core. For that I use `FFI-Performance`, which can be found in my GitHub repository here:</p> <dl> <dt id="https://github.com/Perl5-FFI/FFI-Performance"><a id="https"></a><a id="https:-github.com-Perl5-FFI-FFI-Performance"></a><a href="https://github.com/Perl5-FFI/FFI-Performance">https://github.com/Perl5-FFI/FFI-Performance</a></dt> <dd> </dd> </dl> <h2 id="System-integrators"><a id="System"></a>System integrators</h2> <p>This distribution uses <a href="/pod/Alien::FFI">Alien::FFI</a> in fallback mode, meaning if the system doesn&#39;t provide <code>pkg-config</code> and <code>libffi</code> it will attempt to download <code>libffi</code> and build it from source. If you are including Platypus in a larger system (for example a Linux distribution) you only need to make sure to declare <code>pkg-config</code> or <code>pkgconf</code> and the development package for <code>libffi</code> as prereqs for this module.</p> <h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1> <h2 id="Extending-Platypus"><a id="Extending"></a>Extending Platypus</h2> <dl> <dt id="FFI::Platypus::Type"><a id="FFI8"></a><a href="/pod/FFI::Platypus::Type">FFI::Platypus::Type</a></dt> <dd> <p>Type definitions for Platypus.</p> </dd> <dt id="FFI::C"><a id="FFI9"></a><a href="/pod/FFI::C">FFI::C</a></dt> <dd> <p>Interface for defining structured data records for use with Platypus. It supports C <code>struct</code>, <code>union</code>, nested structures and arrays of all of those. It only supports passing these types by reference or pointer, so if you need to pass structured data by value see <a href="/pod/FFI::Platypus::Record">FFI::Platypus::Record</a> below.</p> </dd> <dt id="FFI::Platypus::Record"><a id="FFI10"></a><a href="/pod/FFI::Platypus::Record">FFI::Platypus::Record</a></dt> <dd> <p>Interface for defining structured data records for use with Platypus. Included in the Platypus core. Supports pass by value which is uncommon in C, but frequently used in languages like Rust and Go. Consider using <a href="/pod/FFI::C">FFI::C</a> instead if you don&#39;t need to pass by value.</p> </dd> <dt id="FFI::Platypus::API"><a id="FFI11"></a><a href="/pod/FFI::Platypus::API">FFI::Platypus::API</a></dt> <dd> <p>The custom types API for Platypus.</p> </dd> <dt id="FFI::Platypus::Memory"><a id="FFI12"></a><a href="/pod/FFI::Platypus::Memory">FFI::Platypus::Memory</a></dt> <dd> <p>Memory functions for FFI.</p> </dd> </dl> <h2 id="Languages">Languages</h2> <dl> <dt id="FFI::Platypus::Lang::C"><a id="FFI13"></a><a href="/pod/FFI::Platypus::Lang::C">FFI::Platypus::Lang::C</a></dt> <dd> <p>Documentation and tools for using Platypus with the C programming language</p> </dd> <dt id="FFI::Platypus::Lang::CPP"><a id="FFI14"></a><a href="/pod/FFI::Platypus::Lang::CPP">FFI::Platypus::Lang::CPP</a></dt> <dd> <p>Documentation and tools for using Platypus with the C++ programming language</p> </dd> <dt id="FFI::Platypus::Lang::Fortran"><a id="FFI15"></a><a href="/pod/FFI::Platypus::Lang::Fortran">FFI::Platypus::Lang::Fortran</a></dt> <dd> <p>Documentation and tools for using Platypus with Fortran</p> </dd> <dt id="FFI::Platypus::Lang::Go"><a id="FFI16"></a><a href="/pod/FFI::Platypus::Lang::Go">FFI::Platypus::Lang::Go</a></dt> <dd> <p>Documentation and tools for using Platypus with Go</p> </dd> <dt id="FFI::Platypus::Lang::Pascal"><a id="FFI17"></a><a href="/pod/FFI::Platypus::Lang::Pascal">FFI::Platypus::Lang::Pascal</a></dt> <dd> <p>Documentation and tools for using Platypus with Free Pascal</p> </dd> <dt id="FFI::Platypus::Lang::Rust"><a id="FFI18"></a><a href="/pod/FFI::Platypus::Lang::Rust">FFI::Platypus::Lang::Rust</a></dt> <dd> <p>Documentation and tools for using Platypus with the Rust programming language</p> </dd> <dt id="FFI::Platypus::Lang::ASM"><a id="FFI19"></a><a href="/pod/FFI::Platypus::Lang::ASM">FFI::Platypus::Lang::ASM</a></dt> <dd> <p>Documentation and tools for using Platypus with the Assembly</p> </dd> <dt id="FFI::Platypus::Lang::Win32"><a id="FFI20"></a><a href="/pod/FFI::Platypus::Lang::Win32">FFI::Platypus::Lang::Win32</a></dt> <dd> <p>Documentation and tools for using Platypus with the Win32 API.</p> </dd> <dt id="FFI::Platypus::Lang::Zig"><a id="FFI21"></a><a href="/pod/FFI::Platypus::Lang::Zig">FFI::Platypus::Lang::Zig</a></dt> <dd> <p>Documentation and tools for using Platypus with the Zig programming language</p> </dd> <dt id="Wasm-and-Wasm::Wasmtime"><a id="Wasm"></a><a href="/pod/Wasm">Wasm</a> and <a href="/pod/Wasm::Wasmtime">Wasm::Wasmtime</a></dt> <dd> <p>Modules for writing WebAssembly bindings in Perl. This allows you to call functions written in any language supported by WebAssembly. These modules are also implemented using Platypus.</p> </dd> </dl> <h2 id="Other-Tools-Related-Tools-Useful-for-FFI"><a id="Other1"></a>Other Tools Related Tools Useful for FFI</h2> <dl> <dt id="FFI::CheckLib"><a id="FFI22"></a><a href="/pod/FFI::CheckLib">FFI::CheckLib</a></dt> <dd> <p>Find dynamic libraries in a portable way.</p> </dd> <dt id="Convert::Binary::C"><a id="Convert"></a><a href="/pod/Convert::Binary::C">Convert::Binary::C</a></dt> <dd> <p>A great interface for decoding C data structures, including <code>struct</code>s, <code>enum</code>s, <code>#define</code>s and more.</p> </dd> <dt id="pack-and-unpack"><a id="pack"></a><a href="/pod/perlpacktut">pack and unpack</a></dt> <dd> <p>Native to Perl functions that can be used to decode C <code>struct</code> types.</p> </dd> <dt id="C::Scan"><a id="C18"></a><a href="/pod/C::Scan">C::Scan</a></dt> <dd> <p>This module can extract constants and other useful objects from C header files that may be relevant to an FFI application. One downside is that its use may require development packages to be installed.</p> </dd> </dl> <h2 id="Other-Foreign-Function-Interfaces"><a id="Other2"></a>Other Foreign Function Interfaces</h2> <dl> <dt id="Dyn"><a href="/pod/Dyn">Dyn</a></dt> <dd> <p>A wrapper around <a href="https://dyncall.org">dyncall</a>, which is itself an alternative to <a href="https://sourceware.org/libffi/">libffi</a>.</p> </dd> <dt id="NativeCall"><a href="/pod/NativeCall">NativeCall</a></dt> <dd> <p>Promising interface to Platypus inspired by Raku.</p> </dd> <dt id="Win32::API"><a id="Win321"></a><a href="/pod/Win32::API">Win32::API</a></dt> <dd> <p>Microsoft Windows specific FFI style interface.</p> </dd> <dt id="FFI"><a href="/pod/FFI">FFI</a></dt> <dd> <p>Older, simpler, less featureful FFI. It used to be implemented using FSF&#39;s <code>ffcall</code>. Because <code>ffcall</code> has been unsupported for some time, I reimplemented this module using <a href="/pod/FFI::Platypus">FFI::Platypus</a>.</p> </dd> <dt id="C::DynaLib"><a id="C19"></a><a href="/pod/C::DynaLib">C::DynaLib</a></dt> <dd> <p>Another FFI for Perl that doesn&#39;t appear to have worked for a long time.</p> </dd> <dt id="C::Blocks"><a id="C20"></a><a href="/pod/C::Blocks">C::Blocks</a></dt> <dd> <p>Embed a tiny C compiler into your Perl scripts.</p> </dd> <dt id="P5NCI"><a href="/pod/P5NCI">P5NCI</a></dt> <dd> <p>Yet another FFI like interface that does not appear to be supported or under development anymore.</p> </dd> </dl> <h2 id="Other">Other</h2> <dl> <dt id="Alien::FFI"><a id="Alien"></a><a href="/pod/Alien::FFI">Alien::FFI</a></dt> <dd> <p>Provides libffi for Platypus during its configuration and build stages.</p> </dd> </dl> <h1 id="ACKNOWLEDGMENTS">ACKNOWLEDGMENTS</h1> <p>In addition to the contributors mentioned below, I would like to acknowledge Brock Wilcox (AWWAIID) and Meredith Howard (MHOWARD) whose work on <code>FFI::Sweet</code> not only helped me get started with FFI but significantly influenced the design of Platypus.</p> <p>Dan Book, who goes by Grinnz on IRC for answering user questions about FFI and Platypus.</p> <p>In addition I&#39;d like to thank Alessandro Ghedini (ALEXBIO) whose work on another Perl FFI library helped drive some of the development ideas for <a href="/pod/FFI::Platypus">FFI::Platypus</a>.</p> <h1 id="AUTHOR">AUTHOR</h1> <p>Author: Graham Ollis &lt;plicease@cpan.org&gt;</p> <p>Contributors:</p> <p>Bakkiaraj Murugesan (bakkiaraj)</p> <p>Dylan Cali (calid)</p> <p>pipcet</p> <p>Zaki Mughal (zmughal)</p> <p>Fitz Elliott (felliott)</p> <p>Vickenty Fesunov (vyf)</p> <p>Gregor Herrmann (gregoa)</p> <p>Shlomi Fish (shlomif)</p> <p>Damyan Ivanov</p> <p>Ilya Pavlov (Ilya33)</p> <p>Petr P&iacute;sa&#x159; (ppisar)</p> <p>Mohammad S Anwar (MANWAR)</p> <p>H&aring;kon H&aelig;gland (hakonhagland, HAKONH)</p> <p>Meredith (merrilymeredith, MHOWARD)</p> <p>Diab Jerius (DJERIUS)</p> <p>Eric Brine (IKEGAMI)</p> <p>szTheory</p> <p>Jos&eacute; Joaqu&iacute;n Atria (JJATRIA)</p> <p>Pete Houston (openstrike, HOUSTON)</p> <p>Lukas Mai (MAUKE)</p> <h1 id="COPYRIGHT-AND-LICENSE"><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</h1> <p>This software is copyright (c) 2015-2022 by Graham Ollis.</p> <p>This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.</p></div> <div id="metacpan_install-instructions-dialog" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 class="modal-title">Module Install Instructions</h4> </div> <div class="modal-body"> <p>To install FFI::Platypus, copy and paste the appropriate command in to your terminal.</p> <p><a href="/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p> <pre><code>cpanm FFI::Platypus</code></pre> <p><a href="/pod/CPAN">CPAN shell</a></p> <pre><code>perl -MCPAN -e shell install FFI::Platypus</code></pre> <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p> </div> <div class="modal-footer"> <a href="#" data-dismiss="modal" class="btn">Close</a> </div> </div> </div> </div> </main> <div class="content-pagination"> </div> </div> <footer class="footer"> <div class="footer-container"> <div class="footer-social"> <div class="footer-link footer-logo"> <a href="/"> <img src="/static/images/metacpan-logo.svg" alt="MetaCPAN" /> </a> </div> <a class="footer-social-link" href="https://github.com/metacpan"> <i class="fab fa-github-square"></i> </a> <a class="footer-social-link" href="https://fosstodon.org/@metacpan"> <i class="fab fa-mastodon"></i> </a> </div> <div class="footer-links"> <div class="footer-link"> <a href="/about">About</a> </div> <div class="footer-link"> <a href="/about/sponsors">Sponsor</a> </div> <div class="footer-link"> <a href="https://grep.metacpan.org">grep::cpan</a> </div> <div class="footer-link"> <a href="/recent">Recent</a> </div> <div class="footer-link"> <a href="/about/faq">FAQ</a> </div> <div class="footer-link"> <a href="/tools">Tools</a> </div> <div class="footer-link"> <a href="https://fastapi.metacpan.org/">API</a> </div> <div class="footer-link"> <a href="https://www.perl.org/">Perl.org</a> </div> </div> <div class="footer-sponsors"> <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener"> <img class="footer-sponsor-bytemark" src="/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener"> <img class="footer-sponsor-liquidweb" src="/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener"> <img class="footer-sponsor-deriv" src="/static/images/sponsors/deriv.svg" alt="Deriv logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener"> <img class="footer-sponsor-geocode" src="/static/images/sponsors/geocodelogo.svg" alt="Geocode logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener"> <img class="footer-sponsor-fastly" src="/static/images/sponsors/fastly_logo.svg" alt="Fastly logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener"> <img class="footer-sponsor-opencage" src="/static/images/sponsors/open-cage.svg" alt="OpenCage logo"> </a> <!-- Added 2024-07-22 --> <a class="footer-sponsor-link" target="_blank" href="https://www.elastic.co/" rel="noopener"> <img class="footer-sponsor-elastic" src="/static/images/sponsors/elastic.svg" alt="Elastic logo"> </a> <!-- Added 2024-07-22 --> <a class="footer-sponsor-link" target="_blank" href="https://route4me.com/" rel="noopener"> <img class="footer-sponsor-route4me" src="/static/images/sponsors/route4me.png" alt="Route4Me logo"> </a> </div> </div> </footer> <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4 class="modal-title">Keyboard Shortcuts</h4> </div> <div class="modal-body row"> <div class="col-md-6"> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>Global</th> </tr> </thead> <tbody> <tr> <td class="keys"> <kbd>s</kbd> </td> <td>Focus search bar</td> </tr> <tr> <td class="keys"> <kbd>?</kbd> </td> <td>Bring up this help dialog</td> </tr> </tbody> </table> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>GitHub</th> </tr> </thead> <tbody> <tr> <td class="keys"> <kbd>g</kbd> <kbd>p</kbd> </td> <td>Go to pull requests</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>i</kbd> </td> <td>go to github issues (only if github is preferred repository)</td> </tr> </tbody> </table> </div> <div class="col-md-6"> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>POD</th> </tr> </thead> <tbody> <tr> <td class="keys"> <kbd>g</kbd> <kbd>a</kbd> </td> <td>Go to author</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>c</kbd> </td> <td>Go to changes</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>i</kbd> </td> <td>Go to issues</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>d</kbd> </td> <td>Go to dist</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>r</kbd> </td> <td>Go to repository/SCM</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>s</kbd> </td> <td>Go to source</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>b</kbd> </td> <td>Go to file browse</td> </tr> </tbody> </table> </div> <div class="col-md-12"> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>Search terms</th> </tr> </thead> <tbody> <tr> <td><em>module:</em> (e.g. <a href="/search?q=module%3APlugin">module:Plugin</a>)</td> </tr> <tr> <td><em>distribution:</em> (e.g. <a href="/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td> </tr> <tr> <td><em>author:</em> (e.g. <a href="/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td> </tr> <tr> <td><em>version:</em> (e.g. <a href="/search?q=version%3A1.00">version:1.00</a>)</td> </tr> </tbody> </table> </div> </div> <div class="modal-footer"></div> </div> </div> </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10