CINXE.COM
perlcompile - Introduction to the Perl Compiler-Translator - metacpan.org
<!DOCTYPE html> <html lang="en-US"> <head> <title>perlcompile - Introduction to the Perl Compiler-Translator - 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 B-C - MetaCPAN" href="/dist/B-C/releases.rss" /> <link rel="canonical" href="https://metacpan.org/dist/B-C/view/perlcompile.pod" /> <meta name="description" content="Introduction to the Perl Compiler-Translator" /> <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/dist/B-C/view/perlcompile.pod" /> <meta property="og:title" content="perlcompile" /> <meta property="og:description" content="Introduction to the Perl Compiler-Translator" /> <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 B-C was released."> <span class="relatize">07 May 2019 12:10:41 UTC</span> </div> </li> <li> Distribution: <a href="/dist/B-C">B-C</a> </li> <li> <a data-keyboard-shortcut="g s" href="/dist/B-C/source/perlcompile.pod">Source</a> (<a href="/dist/B-C/source/perlcompile.pod?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g b" href="/dist/B-C/source">Browse</a> (<a href="/dist/B-C/source?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g c" href="/dist/B-C/changes">Changes</a> </li> <li> <a class="nopopup" href="/dist/B-C/contribute">How to Contribute</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/rurban/perl-compiler">Repository</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/rurban/perl-compiler/issues">Issues</a> (81) </li> <li> <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=B-C+1.57" title="Matrix">Testers</a> <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/B/B-C.html?oncpan=1&distmat=1&version=1.57&grade=2" style="color: #090">91</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/B/B-C.html?oncpan=1&distmat=1&version=1.57&grade=3" style="color: #900">406</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/B/B-C.html?oncpan=1&distmat=1&version=1.57&grade=4">0</a>)</span> </li> <li> <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/RURBAN/B-C-1.57">Kwalitee</a> </li> <li> <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on B-C 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> <a rel="noopener nofollow" href="http://cpancover.com/latest/B-C-1.57/index.html">% Coverage </a> </li> <li> License: perl_5 </li> <li class="nav-header">Activity</li> <li> <div class="activity-graph"> <img src="/dist/B-C/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/R/RU/RURBAN/B-C-1.57.tar.gz"> Download (<span itemprop="fileSize">2.04MB</span>)</a> </li> <li> <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FRURBAN%2FB-C-1.57%2Fperlcompile.pod"> MetaCPAN Explorer </a> </li> <li> <a href="/dist/B-C/permissions"> Permissions </a> </li> <li> <a href="/dist/B-C/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:B-C"> <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="B-C"> <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/RURBAN/B-C-1.57/view/perlcompile.pod" >1.57 (RURBAN on 2019-05-07)</option> <option value="/release/RURBAN/B-C-1.56/view/perlcompile.pod" >1.56 (RURBAN on 2019-05-07)</option> <option value="/release/RURBAN/B-C-1.55_10/view/perlcompile.pod" >1.55_10 DEV (RURBAN on 2018-11-09)</option> <option value="/release/RURBAN/B-C-1.55_08/view/perlcompile.pod" >1.55_08 DEV (RURBAN on 2018-03-09)</option> <option value="/release/RURBAN/B-C-1.55_07/view/perlcompile.pod" >1.55_07 DEV (RURBAN on 2018-03-09)</option> <option value="/release/RURBAN/B-C-1.55_04/view/perlcompile.pod" >1.55_04 DEV (RURBAN on 2017-07-26)</option> <option value="/release/RURBAN/B-C-1.55_02/view/perlcompile.pod" >1.55_02 DEV (RURBAN on 2017-02-10)</option> <option value="/release/RURBAN/B-C-1.55/view/perlcompile.pod" >1.55 (RURBAN on 2017-02-10)</option> <option value="/release/RURBAN/B-C-1.54_15/view/perlcompile.pod" >1.54_15 DEV (RURBAN on 2016-12-11)</option> <option value="/release/RURBAN/B-C-1.54_12/view/perlcompile.pod" >1.54_12 DEV (RURBAN on 2016-08-18)</option> <option value="/release/RURBAN/B-C-1.54_08/view/perlcompile.pod" >1.54_08 DEV (RURBAN on 2016-07-27)</option> <option value="/release/RURBAN/B-C-1.54_03/view/perlcompile.pod" >1.54_03 DEV (RURBAN on 2016-05-09)</option> <option value="/release/RURBAN/B-C-1.54/view/perlcompile.pod" >1.54 (RURBAN on 2016-02-26)</option> <option value="/release/RURBAN/B-C-1.53/view/perlcompile.pod" >1.53 (RURBAN on 2015-12-06)</option> <option value="/release/RURBAN/B-C-1.52/view/perlcompile.pod" >1.52 (RURBAN on 2014-09-09)</option> <option value="/release/RURBAN/B-C-1.51/view/perlcompile.pod" >1.51 (RURBAN on 2014-08-04)</option> <option value="/release/RURBAN/B-C-1.50/view/perlcompile.pod" >1.50 (RURBAN on 2014-07-23)</option> <option value="/release/RURBAN/B-C-1.49/view/perlcompile.pod" >1.49 (RURBAN on 2014-07-12)</option> <option value="/release/RURBAN/B-C-1.48/view/perlcompile.pod" >1.48 (RURBAN on 2014-07-11)</option> <option value="/release/RURBAN/B-C-1.47/view/perlcompile.pod" >1.47 (RURBAN on 2014-06-12)</option> <option value="/release/RURBAN/B-C-1.46/view/perlcompile.pod" >1.46 (RURBAN on 2014-05-14)</option> <option value="/release/RURBAN/B-C-1.45_06/view/perlcompile.pod" >1.45_06 DEV (RURBAN on 2014-02-24)</option> <option value="/release/RURBAN/B-C-1.45/view/perlcompile.pod" >1.45 (RURBAN on 2014-02-11)</option> <option value="/release/RURBAN/B-C-1.44/view/perlcompile.pod" >1.44 (RURBAN on 2014-02-10)</option> <option value="/release/RURBAN/B-C-1.43/view/perlcompile.pod" >1.43 (RURBAN on 2014-01-15)</option> <option value="/release/RURBAN/B-C-1.42/view/perlcompile.pod" >1.42 (RURBAN on 2012-02-01)</option> <option value="/release/RURBAN/B-C-1.41/view/perlcompile.pod" >1.41 (RURBAN on 2012-01-30)</option> <option value="/release/RURBAN/B-C-1.40/view/perlcompile.pod" >1.40 (RURBAN on 2012-01-30)</option> <option value="/release/RURBAN/B-C-1.39/view/perlcompile.pod" >1.39 (RURBAN on 2012-01-25)</option> <option value="/release/RURBAN/B-C-1.38/view/perlcompile.pod" >1.38 (RURBAN on 2012-01-24)</option> <option value="/release/RURBAN/B-C-1.36/view/perlcompile.pod" >1.36 (RURBAN on 2011-10-19)</option> <option value="/release/RURBAN/B-C-1.35/view/perlcompile.pod" >1.35 (RURBAN on 2011-10-02)</option> <option value="/release/RURBAN/B-C-1.34/view/perlcompile.pod" >1.34 (RURBAN on 2011-06-12)</option> <option value="/release/RURBAN/B-C-1.33/view/perlcompile.pod" >1.33 (RURBAN on 2011-06-11)</option> <option value="/release/RURBAN/B-C-1.32/view/perlcompile.pod" >1.32 (RURBAN on 2011-06-10)</option> <option value="/release/RURBAN/B-C-1.31/view/perlcompile.pod" >1.31 (RURBAN on 2011-03-22)</option> <option value="/release/RURBAN/B-C-1.30/view/perlcompile.pod" >1.30 (RURBAN on 2011-03-06)</option> <option value="/release/RURBAN/B-C-1.29/view/perlcompile.pod" >1.29 (RURBAN on 2011-01-08)</option> <option value="/release/RURBAN/B-C-1.28/view/perlcompile.pod" >1.28 (RURBAN on 2010-12-31)</option> <option value="/release/RURBAN/B-C-1.27/view/perlcompile.pod" >1.27 (RURBAN on 2010-07-30)</option> <option value="/release/RURBAN/B-C-1.26/view/perlcompile.pod" >1.26 (RURBAN on 2010-07-25)</option> <option value="/release/RURBAN/B-C-1.25/view/perlcompile.pod" >1.25 (RURBAN on 2010-04-11)</option> <option value="/release/RURBAN/B-C-1.24/view/perlcompile.pod" >1.24 (RURBAN on 2010-02-15)</option> <option value="/release/RURBAN/B-C-1.23/view/perlcompile.pod" >1.23 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.22/view/perlcompile.pod" >1.22 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.06/view/perlcompile.pod" >1.06 (RURBAN on 2009-12-18)</option> <option value="/release/RURBAN/B-C-1.04_12/view/perlcompile.pod" >1.04_12 DEV (RURBAN on 2008-03-18)</option> <optgroup label="BackPAN">' <option value="/release/RURBAN/B-C-1.37/view/perlcompile.pod" >1.37 (RURBAN on 2012-01-24)</option> <option value="/release/RURBAN/B-C-1.21/view/perlcompile.pod" >1.21 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.20/view/perlcompile.pod" >1.20 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.19/view/perlcompile.pod" >1.19 (RURBAN on 2010-02-13)</option> <option value="/release/RURBAN/B-C-1.18/view/perlcompile.pod" >1.18 (RURBAN on 2010-02-06)</option> <option value="/release/RURBAN/B-C-1.17/view/perlcompile.pod" >1.17 (RURBAN on 2010-02-03)</option> <option value="/release/RURBAN/B-C-1.16/view/perlcompile.pod" >1.16 (RURBAN on 2010-01-28)</option> <option value="/release/RURBAN/B-C-1.15/view/perlcompile.pod" >1.15 (RURBAN on 2010-01-03)</option> <option value="/release/RURBAN/B-C-1.14/view/perlcompile.pod" >1.14 (RURBAN on 2010-01-02)</option> <option value="/release/RURBAN/B-C-1.13/view/perlcompile.pod" >1.13 (RURBAN on 2009-12-31)</option> <option value="/release/RURBAN/B-C-1.12/view/perlcompile.pod" >1.12 (RURBAN on 2009-12-31)</option> <option value="/release/RURBAN/B-C-1.11/view/perlcompile.pod" >1.11 (RURBAN on 2009-12-29)</option> <option value="/release/RURBAN/B-C-1.10/view/perlcompile.pod" >1.10 (RURBAN on 2009-12-29)</option> <option value="/release/RURBAN/B-C-1.09/view/perlcompile.pod" >1.09 (RURBAN on 2009-12-27)</option> <option value="/release/RURBAN/B-C-1.08/view/perlcompile.pod" >1.08 (RURBAN on 2009-12-23)</option> <option value="/release/RURBAN/B-C-1.07/view/perlcompile.pod" >1.07 (RURBAN on 2009-12-19)</option> <option value="/release/RURBAN/B-C-1.04_33/view/perlcompile.pod" >1.04_33 DEV (RURBAN on 2009-12-17)</option> <option value="/release/RURBAN/B-C-1.04_32/view/perlcompile.pod" >1.04_32 DEV (RURBAN on 2009-12-14)</option> <option value="/release/RURBAN/B-C-1.04_31/view/perlcompile.pod" >1.04_31 DEV (RURBAN on 2009-12-14)</option> <option value="/release/RURBAN/B-C-1.04_30/view/perlcompile.pod" >1.04_30 DEV (RURBAN on 2009-12-13)</option> <option value="/release/RURBAN/B-C-1.04_29/view/perlcompile.pod" >1.04_29 DEV (RURBAN on 2009-12-07)</option> <option value="/release/RURBAN/B-C-1.04_28/view/perlcompile.pod" >1.04_28 DEV (RURBAN on 2009-12-06)</option> <option value="/release/RURBAN/B-C-1.04_27/view/perlcompile.pod" >1.04_27 DEV (RURBAN on 2009-12-05)</option> <option value="/release/RURBAN/B-C-1.04_26/view/perlcompile.pod" >1.04_26 DEV (RURBAN on 2009-12-02)</option> <option value="/release/RURBAN/B-C-1.04_25/view/perlcompile.pod" >1.04_25 DEV (RURBAN on 2009-11-30)</option> <option value="/release/RURBAN/B-C-1.04_24/view/perlcompile.pod" >1.04_24 DEV (RURBAN on 2009-11-29)</option> <option value="/release/RURBAN/B-C-1.04_23/view/perlcompile.pod" >1.04_23 DEV (RURBAN on 2009-11-22)</option> <option value="/release/RURBAN/B-C-1.04_22/view/perlcompile.pod" >1.04_22 DEV (RURBAN on 2009-11-16)</option> <option value="/release/RURBAN/B-C-1.04_21/view/perlcompile.pod" >1.04_21 DEV (RURBAN on 2009-11-07)</option> <option value="/release/RURBAN/B-C-1.04_20/view/perlcompile.pod" >1.04_20 DEV (RURBAN on 2008-06-25)</option> <option value="/release/RURBAN/B-C-1.04_19/view/perlcompile.pod" >1.04_19 DEV (RURBAN on 2008-06-08)</option> <option value="/release/RURBAN/B-C-1.04_18/view/perlcompile.pod" >1.04_18 DEV (RURBAN on 2008-06-05)</option> <option value="/release/RURBAN/B-C-1.04_17/view/perlcompile.pod" >1.04_17 DEV (RURBAN on 2008-04-19)</option> <option value="/release/RURBAN/B-C-1.04_16/view/perlcompile.pod" >1.04_16 DEV (RURBAN on 2008-04-15)</option> <option value="/release/RURBAN/B-C-1.04_15/view/perlcompile.pod" >1.04_15 DEV (RURBAN on 2008-04-11)</option> <option value="/release/RURBAN/B-C-1.04_14/view/perlcompile.pod" >1.04_14 DEV (RURBAN on 2008-03-24)</option> <option value="/release/RURBAN/B-C-1.04_13/view/perlcompile.pod" >1.04_13 DEV (RURBAN on 2008-03-24)</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/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.57/perlcompile.pod" >1.57 (RURBAN on 2019-05-07)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.56/perlcompile.pod" >1.56 (RURBAN on 2019-05-07)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.55_10/perlcompile.pod" >1.55_10 DEV (RURBAN on 2018-11-09)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.55_08/perlcompile.pod" >1.55_08 DEV (RURBAN on 2018-03-09)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.55_07/perlcompile.pod" >1.55_07 DEV (RURBAN on 2018-03-09)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.55_04/perlcompile.pod" >1.55_04 DEV (RURBAN on 2017-07-26)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.55_02/perlcompile.pod" >1.55_02 DEV (RURBAN on 2017-02-10)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.55/perlcompile.pod" >1.55 (RURBAN on 2017-02-10)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.54_15/perlcompile.pod" >1.54_15 DEV (RURBAN on 2016-12-11)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.54_12/perlcompile.pod" >1.54_12 DEV (RURBAN on 2016-08-18)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.54_08/perlcompile.pod" >1.54_08 DEV (RURBAN on 2016-07-27)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.54_03/perlcompile.pod" >1.54_03 DEV (RURBAN on 2016-05-09)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.54/perlcompile.pod" >1.54 (RURBAN on 2016-02-26)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.53/perlcompile.pod" >1.53 (RURBAN on 2015-12-06)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.52/perlcompile.pod" >1.52 (RURBAN on 2014-09-09)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.51/perlcompile.pod" >1.51 (RURBAN on 2014-08-04)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.50/perlcompile.pod" >1.50 (RURBAN on 2014-07-23)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.49/perlcompile.pod" >1.49 (RURBAN on 2014-07-12)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.48/perlcompile.pod" >1.48 (RURBAN on 2014-07-11)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.47/perlcompile.pod" >1.47 (RURBAN on 2014-06-12)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.46/perlcompile.pod" >1.46 (RURBAN on 2014-05-14)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.45_06/perlcompile.pod" >1.45_06 DEV (RURBAN on 2014-02-24)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.45/perlcompile.pod" >1.45 (RURBAN on 2014-02-11)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.44/perlcompile.pod" >1.44 (RURBAN on 2014-02-10)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.43/perlcompile.pod" >1.43 (RURBAN on 2014-01-15)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.42/perlcompile.pod" >1.42 (RURBAN on 2012-02-01)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.41/perlcompile.pod" >1.41 (RURBAN on 2012-01-30)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.40/perlcompile.pod" >1.40 (RURBAN on 2012-01-30)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.39/perlcompile.pod" >1.39 (RURBAN on 2012-01-25)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.38/perlcompile.pod" >1.38 (RURBAN on 2012-01-24)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.36/perlcompile.pod" >1.36 (RURBAN on 2011-10-19)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.35/perlcompile.pod" >1.35 (RURBAN on 2011-10-02)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.34/perlcompile.pod" >1.34 (RURBAN on 2011-06-12)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.33/perlcompile.pod" >1.33 (RURBAN on 2011-06-11)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.32/perlcompile.pod" >1.32 (RURBAN on 2011-06-10)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.31/perlcompile.pod" >1.31 (RURBAN on 2011-03-22)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.30/perlcompile.pod" >1.30 (RURBAN on 2011-03-06)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.29/perlcompile.pod" >1.29 (RURBAN on 2011-01-08)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.28/perlcompile.pod" >1.28 (RURBAN on 2010-12-31)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.27/perlcompile.pod" >1.27 (RURBAN on 2010-07-30)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.26/perlcompile.pod" >1.26 (RURBAN on 2010-07-25)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.25/perlcompile.pod" >1.25 (RURBAN on 2010-04-11)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.24/perlcompile.pod" >1.24 (RURBAN on 2010-02-15)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.23/perlcompile.pod" >1.23 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.22/perlcompile.pod" >1.22 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.06/perlcompile.pod" >1.06 (RURBAN on 2009-12-18)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_12/perlcompile.pod" >1.04_12 DEV (RURBAN on 2008-03-18)</option> <optgroup label="BackPAN">' <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.37/perlcompile.pod" >1.37 (RURBAN on 2012-01-24)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.21/perlcompile.pod" >1.21 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.20/perlcompile.pod" >1.20 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.19/perlcompile.pod" >1.19 (RURBAN on 2010-02-13)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.18/perlcompile.pod" >1.18 (RURBAN on 2010-02-06)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.17/perlcompile.pod" >1.17 (RURBAN on 2010-02-03)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.16/perlcompile.pod" >1.16 (RURBAN on 2010-01-28)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.15/perlcompile.pod" >1.15 (RURBAN on 2010-01-03)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.14/perlcompile.pod" >1.14 (RURBAN on 2010-01-02)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.13/perlcompile.pod" >1.13 (RURBAN on 2009-12-31)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.12/perlcompile.pod" >1.12 (RURBAN on 2009-12-31)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.11/perlcompile.pod" >1.11 (RURBAN on 2009-12-29)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.10/perlcompile.pod" >1.10 (RURBAN on 2009-12-29)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.09/perlcompile.pod" >1.09 (RURBAN on 2009-12-27)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.08/perlcompile.pod" >1.08 (RURBAN on 2009-12-23)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.07/perlcompile.pod" >1.07 (RURBAN on 2009-12-19)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_33/perlcompile.pod" >1.04_33 DEV (RURBAN on 2009-12-17)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_32/perlcompile.pod" >1.04_32 DEV (RURBAN on 2009-12-14)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_31/perlcompile.pod" >1.04_31 DEV (RURBAN on 2009-12-14)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_30/perlcompile.pod" >1.04_30 DEV (RURBAN on 2009-12-13)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_29/perlcompile.pod" >1.04_29 DEV (RURBAN on 2009-12-07)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_28/perlcompile.pod" >1.04_28 DEV (RURBAN on 2009-12-06)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_27/perlcompile.pod" >1.04_27 DEV (RURBAN on 2009-12-05)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_26/perlcompile.pod" >1.04_26 DEV (RURBAN on 2009-12-02)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_25/perlcompile.pod" >1.04_25 DEV (RURBAN on 2009-11-30)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_24/perlcompile.pod" >1.04_24 DEV (RURBAN on 2009-11-29)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_23/perlcompile.pod" >1.04_23 DEV (RURBAN on 2009-11-22)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_22/perlcompile.pod" >1.04_22 DEV (RURBAN on 2009-11-16)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_21/perlcompile.pod" >1.04_21 DEV (RURBAN on 2009-11-07)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_20/perlcompile.pod" >1.04_20 DEV (RURBAN on 2008-06-25)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_19/perlcompile.pod" >1.04_19 DEV (RURBAN on 2008-06-08)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_18/perlcompile.pod" >1.04_18 DEV (RURBAN on 2008-06-05)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_17/perlcompile.pod" >1.04_17 DEV (RURBAN on 2008-04-19)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_16/perlcompile.pod" >1.04_16 DEV (RURBAN on 2008-04-15)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_15/perlcompile.pod" >1.04_15 DEV (RURBAN on 2008-04-11)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_14/perlcompile.pod" >1.04_14 DEV (RURBAN on 2008-03-24)</option> <option value="/release/RURBAN/B-C-1.57/diff/RURBAN/B-C-1.04_13/perlcompile.pod" >1.04_13 DEV (RURBAN on 2008-03-24)</option> </optgroup> </select> </li> <li> <ul class="dependencies"> <li class="nav-header">Dependencies</li> <li><a href="/pod/B::Flags" title="B::Flags" class="ellipsis">B::Flags</a></li> <li><a href="/pod/ExtUtils::Embed" title="ExtUtils::Embed" class="ellipsis">ExtUtils::Embed</a></li> <li><a href="/pod/IPC::Run" title="IPC::Run" class="ellipsis">IPC::Run</a></li> <li><a href="/pod/Opcodes" title="Opcodes" class="ellipsis">Opcodes</a></li> <li><a href="/pod/Time::HiRes" title="Time::HiRes" class="ellipsis">Time::HiRes</a></li> <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li> <li> <hr> </li> <li> <a href="/module/perlcompile/requires">Reverse dependencies</a> </li> <li> <a href="http://deps.cpantesters.org/?module=perlcompile">CPAN Testers List</a> </li> <li> <a href="https://cpandeps.grinnz.com/?dist=B-C">Dependency graph</a> </li> </ul> </li> <li class="nav-header">Permalinks</li> <li> <a href="/release/RURBAN/B-C-1.57/view/perlcompile.pod">This version</a> </li> <li> <a href="/dist/B-C/view/perlcompile.pod">Latest version</a> </li> <li> <div class="plussers"> <div class="nav-header">++ed by:</div> <div> <a class="display-all" href="/author/KRAUTCAT"><img src="https://www.gravatar.com/avatar/efd137d1577aa9df7fc833f6306958d5?d=identicon&s=20" title="KRAUTCAT" alt="KRAUTCAT"></a> <a class="display-all" href="/author/ILUX"><img src="https://www.gravatar.com/avatar/1cd0eea5e6ca13346060bb9d2c1e286b?d=identicon&s=20" title="ILUX" alt="ILUX"></a> <a class="display-all" href="/author/ZMUGHAL"><img src="https://www.gravatar.com/avatar/82e7c54d334bfdfd32594d34583d32bc?d=identicon&s=20" title="ZMUGHAL" alt="ZMUGHAL"></a> <a class="display-all" href="/author/HANNIBAL"><img src="https://www.gravatar.com/avatar/325c153e70a65543b9496e0ad7cdca29?d=identicon&s=20" title="HANNIBAL" alt="HANNIBAL"></a> <a class="display-all" href="/author/AERO"><img src="https://www.gravatar.com/avatar/c178cdf81a17c1c59c6ee898d9e09ccf?d=identicon&s=20" title="AERO" alt="AERO"></a> </div> <!-- Display counts of plussers--> <div> <a href="/dist/B-C/plussers">14 PAUSE users</a> </div> <div> 9 non-PAUSE users </div> </div> </li> <li> </li> </ul> </div> </nav> <div class="content-navigation"> <div class="breadcrumbs"> <span> <a data-keyboard-shortcut="g a" rel="author" href="/author/RURBAN" class="author-name">Reini Urban</a> </span> <span> / </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/RURBAN/B-C-1.57/view/perlcompile.pod" >1.57 (RURBAN on 2019-05-07)</option> <option value="/release/RURBAN/B-C-1.56/view/perlcompile.pod" >1.56 (RURBAN on 2019-05-07)</option> <option value="/release/RURBAN/B-C-1.55_10/view/perlcompile.pod" >1.55_10 DEV (RURBAN on 2018-11-09)</option> <option value="/release/RURBAN/B-C-1.55_08/view/perlcompile.pod" >1.55_08 DEV (RURBAN on 2018-03-09)</option> <option value="/release/RURBAN/B-C-1.55_07/view/perlcompile.pod" >1.55_07 DEV (RURBAN on 2018-03-09)</option> <option value="/release/RURBAN/B-C-1.55_04/view/perlcompile.pod" >1.55_04 DEV (RURBAN on 2017-07-26)</option> <option value="/release/RURBAN/B-C-1.55_02/view/perlcompile.pod" >1.55_02 DEV (RURBAN on 2017-02-10)</option> <option value="/release/RURBAN/B-C-1.55/view/perlcompile.pod" >1.55 (RURBAN on 2017-02-10)</option> <option value="/release/RURBAN/B-C-1.54_15/view/perlcompile.pod" >1.54_15 DEV (RURBAN on 2016-12-11)</option> <option value="/release/RURBAN/B-C-1.54_12/view/perlcompile.pod" >1.54_12 DEV (RURBAN on 2016-08-18)</option> <option value="/release/RURBAN/B-C-1.54_08/view/perlcompile.pod" >1.54_08 DEV (RURBAN on 2016-07-27)</option> <option value="/release/RURBAN/B-C-1.54_03/view/perlcompile.pod" >1.54_03 DEV (RURBAN on 2016-05-09)</option> <option value="/release/RURBAN/B-C-1.54/view/perlcompile.pod" >1.54 (RURBAN on 2016-02-26)</option> <option value="/release/RURBAN/B-C-1.53/view/perlcompile.pod" >1.53 (RURBAN on 2015-12-06)</option> <option value="/release/RURBAN/B-C-1.52/view/perlcompile.pod" >1.52 (RURBAN on 2014-09-09)</option> <option value="/release/RURBAN/B-C-1.51/view/perlcompile.pod" >1.51 (RURBAN on 2014-08-04)</option> <option value="/release/RURBAN/B-C-1.50/view/perlcompile.pod" >1.50 (RURBAN on 2014-07-23)</option> <option value="/release/RURBAN/B-C-1.49/view/perlcompile.pod" >1.49 (RURBAN on 2014-07-12)</option> <option value="/release/RURBAN/B-C-1.48/view/perlcompile.pod" >1.48 (RURBAN on 2014-07-11)</option> <option value="/release/RURBAN/B-C-1.47/view/perlcompile.pod" >1.47 (RURBAN on 2014-06-12)</option> <option value="/release/RURBAN/B-C-1.46/view/perlcompile.pod" >1.46 (RURBAN on 2014-05-14)</option> <option value="/release/RURBAN/B-C-1.45_06/view/perlcompile.pod" >1.45_06 DEV (RURBAN on 2014-02-24)</option> <option value="/release/RURBAN/B-C-1.45/view/perlcompile.pod" >1.45 (RURBAN on 2014-02-11)</option> <option value="/release/RURBAN/B-C-1.44/view/perlcompile.pod" >1.44 (RURBAN on 2014-02-10)</option> <option value="/release/RURBAN/B-C-1.43/view/perlcompile.pod" >1.43 (RURBAN on 2014-01-15)</option> <option value="/release/RURBAN/B-C-1.42/view/perlcompile.pod" >1.42 (RURBAN on 2012-02-01)</option> <option value="/release/RURBAN/B-C-1.41/view/perlcompile.pod" >1.41 (RURBAN on 2012-01-30)</option> <option value="/release/RURBAN/B-C-1.40/view/perlcompile.pod" >1.40 (RURBAN on 2012-01-30)</option> <option value="/release/RURBAN/B-C-1.39/view/perlcompile.pod" >1.39 (RURBAN on 2012-01-25)</option> <option value="/release/RURBAN/B-C-1.38/view/perlcompile.pod" >1.38 (RURBAN on 2012-01-24)</option> <option value="/release/RURBAN/B-C-1.36/view/perlcompile.pod" >1.36 (RURBAN on 2011-10-19)</option> <option value="/release/RURBAN/B-C-1.35/view/perlcompile.pod" >1.35 (RURBAN on 2011-10-02)</option> <option value="/release/RURBAN/B-C-1.34/view/perlcompile.pod" >1.34 (RURBAN on 2011-06-12)</option> <option value="/release/RURBAN/B-C-1.33/view/perlcompile.pod" >1.33 (RURBAN on 2011-06-11)</option> <option value="/release/RURBAN/B-C-1.32/view/perlcompile.pod" >1.32 (RURBAN on 2011-06-10)</option> <option value="/release/RURBAN/B-C-1.31/view/perlcompile.pod" >1.31 (RURBAN on 2011-03-22)</option> <option value="/release/RURBAN/B-C-1.30/view/perlcompile.pod" >1.30 (RURBAN on 2011-03-06)</option> <option value="/release/RURBAN/B-C-1.29/view/perlcompile.pod" >1.29 (RURBAN on 2011-01-08)</option> <option value="/release/RURBAN/B-C-1.28/view/perlcompile.pod" >1.28 (RURBAN on 2010-12-31)</option> <option value="/release/RURBAN/B-C-1.27/view/perlcompile.pod" >1.27 (RURBAN on 2010-07-30)</option> <option value="/release/RURBAN/B-C-1.26/view/perlcompile.pod" >1.26 (RURBAN on 2010-07-25)</option> <option value="/release/RURBAN/B-C-1.25/view/perlcompile.pod" >1.25 (RURBAN on 2010-04-11)</option> <option value="/release/RURBAN/B-C-1.24/view/perlcompile.pod" >1.24 (RURBAN on 2010-02-15)</option> <option value="/release/RURBAN/B-C-1.23/view/perlcompile.pod" >1.23 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.22/view/perlcompile.pod" >1.22 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.06/view/perlcompile.pod" >1.06 (RURBAN on 2009-12-18)</option> <option value="/release/RURBAN/B-C-1.04_12/view/perlcompile.pod" >1.04_12 DEV (RURBAN on 2008-03-18)</option> <optgroup label="BackPAN">' <option value="/release/RURBAN/B-C-1.37/view/perlcompile.pod" >1.37 (RURBAN on 2012-01-24)</option> <option value="/release/RURBAN/B-C-1.21/view/perlcompile.pod" >1.21 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.20/view/perlcompile.pod" >1.20 (RURBAN on 2010-02-14)</option> <option value="/release/RURBAN/B-C-1.19/view/perlcompile.pod" >1.19 (RURBAN on 2010-02-13)</option> <option value="/release/RURBAN/B-C-1.18/view/perlcompile.pod" >1.18 (RURBAN on 2010-02-06)</option> <option value="/release/RURBAN/B-C-1.17/view/perlcompile.pod" >1.17 (RURBAN on 2010-02-03)</option> <option value="/release/RURBAN/B-C-1.16/view/perlcompile.pod" >1.16 (RURBAN on 2010-01-28)</option> <option value="/release/RURBAN/B-C-1.15/view/perlcompile.pod" >1.15 (RURBAN on 2010-01-03)</option> <option value="/release/RURBAN/B-C-1.14/view/perlcompile.pod" >1.14 (RURBAN on 2010-01-02)</option> <option value="/release/RURBAN/B-C-1.13/view/perlcompile.pod" >1.13 (RURBAN on 2009-12-31)</option> <option value="/release/RURBAN/B-C-1.12/view/perlcompile.pod" >1.12 (RURBAN on 2009-12-31)</option> <option value="/release/RURBAN/B-C-1.11/view/perlcompile.pod" >1.11 (RURBAN on 2009-12-29)</option> <option value="/release/RURBAN/B-C-1.10/view/perlcompile.pod" >1.10 (RURBAN on 2009-12-29)</option> <option value="/release/RURBAN/B-C-1.09/view/perlcompile.pod" >1.09 (RURBAN on 2009-12-27)</option> <option value="/release/RURBAN/B-C-1.08/view/perlcompile.pod" >1.08 (RURBAN on 2009-12-23)</option> <option value="/release/RURBAN/B-C-1.07/view/perlcompile.pod" >1.07 (RURBAN on 2009-12-19)</option> <option value="/release/RURBAN/B-C-1.04_33/view/perlcompile.pod" >1.04_33 DEV (RURBAN on 2009-12-17)</option> <option value="/release/RURBAN/B-C-1.04_32/view/perlcompile.pod" >1.04_32 DEV (RURBAN on 2009-12-14)</option> <option value="/release/RURBAN/B-C-1.04_31/view/perlcompile.pod" >1.04_31 DEV (RURBAN on 2009-12-14)</option> <option value="/release/RURBAN/B-C-1.04_30/view/perlcompile.pod" >1.04_30 DEV (RURBAN on 2009-12-13)</option> <option value="/release/RURBAN/B-C-1.04_29/view/perlcompile.pod" >1.04_29 DEV (RURBAN on 2009-12-07)</option> <option value="/release/RURBAN/B-C-1.04_28/view/perlcompile.pod" >1.04_28 DEV (RURBAN on 2009-12-06)</option> <option value="/release/RURBAN/B-C-1.04_27/view/perlcompile.pod" >1.04_27 DEV (RURBAN on 2009-12-05)</option> <option value="/release/RURBAN/B-C-1.04_26/view/perlcompile.pod" >1.04_26 DEV (RURBAN on 2009-12-02)</option> <option value="/release/RURBAN/B-C-1.04_25/view/perlcompile.pod" >1.04_25 DEV (RURBAN on 2009-11-30)</option> <option value="/release/RURBAN/B-C-1.04_24/view/perlcompile.pod" >1.04_24 DEV (RURBAN on 2009-11-29)</option> <option value="/release/RURBAN/B-C-1.04_23/view/perlcompile.pod" >1.04_23 DEV (RURBAN on 2009-11-22)</option> <option value="/release/RURBAN/B-C-1.04_22/view/perlcompile.pod" >1.04_22 DEV (RURBAN on 2009-11-16)</option> <option value="/release/RURBAN/B-C-1.04_21/view/perlcompile.pod" >1.04_21 DEV (RURBAN on 2009-11-07)</option> <option value="/release/RURBAN/B-C-1.04_20/view/perlcompile.pod" >1.04_20 DEV (RURBAN on 2008-06-25)</option> <option value="/release/RURBAN/B-C-1.04_19/view/perlcompile.pod" >1.04_19 DEV (RURBAN on 2008-06-08)</option> <option value="/release/RURBAN/B-C-1.04_18/view/perlcompile.pod" >1.04_18 DEV (RURBAN on 2008-06-05)</option> <option value="/release/RURBAN/B-C-1.04_17/view/perlcompile.pod" >1.04_17 DEV (RURBAN on 2008-04-19)</option> <option value="/release/RURBAN/B-C-1.04_16/view/perlcompile.pod" >1.04_16 DEV (RURBAN on 2008-04-15)</option> <option value="/release/RURBAN/B-C-1.04_15/view/perlcompile.pod" >1.04_15 DEV (RURBAN on 2008-04-11)</option> <option value="/release/RURBAN/B-C-1.04_14/view/perlcompile.pod" >1.04_14 DEV (RURBAN on 2008-03-24)</option> <option value="/release/RURBAN/B-C-1.04_13/view/perlcompile.pod" >1.04_13 DEV (RURBAN on 2008-03-24)</option> </optgroup> </select> <a data-keyboard-shortcut="g d" class="release-name" href="/dist/B-C">B-C-1.57</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 zero No dependents </title> <rect x="0" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="5" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="10" y="0" width="4" height="15" fill="#e4e2e2" /> <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="B-C-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="B-C-1.57"> <input type="hidden" name="author" value="RURBAN"> <input type="hidden" name="distribution" value="B-C"> <button type="submit" class="favorite highlight"><span>23</span> ++</button> </form> </div> <div class="show-logged-out"> <button class="fav-not-logged-in favorite highlight"><span>23</span> ++</button> </div> / <span>perlcompile</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="#DESCRIPTION">DESCRIPTION</a> <ul> <li><a href="#Layout">Layout</a></li> </ul> </li> <li><a href="#Using-The-Backends">Using The Backends</a> <ul> <li><a href="#The-Cross-Referencing-Backend">The Cross Referencing Backend</a></li> <li><a href="#The-Decompiling-Backend">The Decompiling Backend</a></li> <li><a href="#The-Lint-Backend">The Lint Backend</a></li> <li><a href="#The-Simple-C-Backend">The Simple C Backend</a> <ul> <li><a href="#C-Backend-Invocation">C Backend Invocation</a></li> <li><a href="#C-Examples-perl-MO%3DC-foo.pl-%3E-foo.c-perl-cc_harness-o-foo-foo.c">C Examples perl -MO=C foo.pl > foo.c perl cc_harness -o foo foo.c</a></li> </ul> </li> <li><a href="#The-Bytecode-Backend">The Bytecode Backend</a> <ul> <li><a href="#Bytecode-Backend-Invocation">Bytecode Backend Invocation</a></li> <li><a href="#Bytecode-Invocation-Examples">Bytecode Invocation Examples</a></li> </ul> </li> <li><a href="#The-Optimized-C-Backend">The Optimized C Backend</a> <ul> <li><a href="#CC-Backend-Invocation">CC Backend Invocation</a></li> <li><a href="#CC-Invocation-Example">CC Invocation Example</a></li> </ul> </li> <li><a href="#Backends-For-Debugging">Backends For Debugging</a></li> </ul> </li> <li><a href="#Module-List-for-the-Compiler-Suite">Module List for the Compiler Suite</a></li> <li><a href="#KNOWN-PROBLEMS">KNOWN PROBLEMS</a> <ul> <li><a href="#Other-perl-to-exe-compilers">Other perl to exe compilers</a></li> </ul> </li> <li><a href="#AUTHOR">AUTHOR</a></li> <li><a href="#SEE-ALSO">SEE ALSO</a></li> </ul></nav> <div class="pod anchors"> <h1 id="NAME">NAME</h1> <p>perlcompile - Introduction to the Perl Compiler-Translator</p> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p>Perl has always had a compiler: your source is compiled into an internal form (a parse tree, "optree") which is then optimized before being run. Since version 5.005, Perl has shipped with a module capable of inspecting the optimized optree (<a href="/pod/B">B</a>), and this has been used to write many useful utilities, including the <a href="/pod/B::C">B::C</a> and <a href="/pod/B::CC">B::CC</a> modules that lets you turn your Perl into C source code that can be compiled into a native executable.</p> <p>The <code>B</code> module provides access to the optree, and other modules ("backends") do things with the tree. Some write it out as bytecode <a href="/pod/B::Bytecode">B::Bytecode</a>, C source code <a href="/pod/B::C">B::C</a>, or a semi-human-readable text. Another <a href="/pod/B::Xref">B::Xref</a> traverses the parse tree to build a cross-reference of which subroutines, formats, and variables are used where. Another <a href="/pod/B::Lint">B::Lint</a> checks your code for dubious constructs. <a href="/pod/B::Deparse">B::Deparse</a> dumps the parse tree back out as Perl source, acting as a source code beautifier or deobfuscator.</p> <p>Because its original purpose was to be a way to produce C code corresponding to a Perl program, and in turn a native executable, the <code>B</code> module and its associated backends, mainly <a href="/pod/B::C">B::C</a>, <a href="/pod/B::CC">B::CC</a> and <a href="/pod/B::Bytecode">B::Bytecode</a> are known as "the compiler", even though they don't really compile anything.</p> <p>This document covers the use of the Perl compiler: which modules it comprises, how to use the most important of the backend modules, what problems there are, and how to work around them.</p> <h2 id="Layout">Layout</h2> <p>The compiler backends are in the <code>B::</code> hierarchy, and the front-end (the module that you, the user of the compiler, will sometimes interact with) is the O module. Some backends (e.g., <code>B::C</code>) have programs (e.g., <i>perlcc</i>) to hide the modules' complexity.</p> <p>Since Perl 5.10 the three code-producing backends (<code>B::C</code>, <code>B::CC</code> and <code>B::Bytecode</code>), aka the compiler, have been removed from CORE Perl and are available as seperate CPAN module <a href="http://search.cpan.org/dist/B-C/">http://search.cpan.org/dist/B-C/</a>.</p> <p>Here are the important backends to know about, with their status expressed as a number from 0 (outline for later implementation) to 10:</p> <dl> <dt id="The-B::Bytecode-backend"><a id="The"></a>The B::Bytecode backend</dt> <dd> <p>Stores the parse tree in a machine-independent format, suitable for later reloading through the <a href="#ByteLoader">"ByteLoader"</a> module.</p> <p>Status: 7 (5.18 and higher is broken).</p> </dd> <dt id="The-B::C-backend"><a id="The1"></a>The B::C backend</dt> <dd> <p>Creates a C source file containing code to rebuild the parse tree and resume the interpreter.</p> <p>Status: 9 (most applications work out of the box, some need cmdline flags)</p> <p>5.14 works best. See <a href="/pod/STATUS">STATUS</a></p> <p>B::C is stable and used in production for -O0 and -O3. For some programs not all methods in certain packages or eval strings might be detected, you'd need to add them manually via -u<packagename>.</p> <p>Still missing in general are:</p> <pre><code>- attribute handlers (i.e. run-time attributes) - compile-time perlio layers - re-eval groups (?{}) - smartmatch subrefs - compile-time stash-magic delete renames to ANON</code></pre> </dd> <dt id="The-B::CC-backend"><a id="The2"></a>The B::CC backend</dt> <dd> <p>Creates a C source file corresponding to the run time code path in the parse tree. This is the closest to a Perl-to-C translator there is, but the code it generates is almost incomprehensible because it translates the parse tree into a giant switch structure that manipulates Perl structures. Eventual goal is to reduce (given sufficient type information in the Perl program) some of the Perl data structure manipulations into manipulations of C-level ints, floats, etc.</p> <p>Status: 5 (some applications work).</p> </dd> <dt id="B::Lint"><a id="B1"></a>B::Lint</dt> <dd> <p>Complains if it finds dubious constructs in your source code. Status: 6 (it works adequately, but only has a very limited number of areas that it checks).</p> </dd> <dt id="B::Deparse"><a id="B2"></a>B::Deparse</dt> <dd> <p>Recreates the Perl source, making an attempt to format it coherently. Status: 8 (it works nicely, but a few obscure things are missing).</p> </dd> <dt id="B::Xref"><a id="B3"></a>B::Xref</dt> <dd> <p>Reports on the declaration and use of subroutines and variables. Status: 8 (it works nicely, but still has a few lingering bugs).</p> </dd> </dl> <h1 id="Using-The-Backends"><a id="Using"></a>Using The Backends</h1> <p>The following sections describe how to use the various compiler back ends. They're presented roughly in order of maturity, so that the most stable and proven backends are described first, and the most experimental and incomplete backends are described last.</p> <p>The <code>O</code> module automatically enabled the <b>-c</b> flag to Perl, which prevents Perl from executing your code once it has been compiled. This is why all the backends print:</p> <pre><code>myperlprogram syntax OK</code></pre> <p>before producing any other output.</p> <h2 id="The-Cross-Referencing-Backend"><a id="The3"></a>The Cross Referencing Backend</h2> <p>The cross referencing backend (<code>B::Xref</code>) produces a report on your program, breaking down declarations and uses of subroutines and variables (and formats) by file and subroutine. For instance, here's part of the report from the <i>pod2man</i> program that comes with Perl:</p> <pre><code>Subroutine clear_noremap Package (lexical) $ready_to_print i1069, 1079 Package main $& 1086 $. 1086 $0 1086 $1 1087 $2 1085, 1085 $3 1085, 1085 $ARGV 1086 %HTML_Escapes 1085, 1085</code></pre> <p>This shows the variables used in the subroutine <code>clear_noremap</code>. The variable <code>$ready_to_print</code> is a my() (lexical) variable, <b>i</b>ntroduced (first declared with my()) on line 1069, and used on line 1079. The variable <code>$&</code> from the main package is used on 1086, and so on.</p> <p>A line number may be prefixed by a single letter:</p> <dl> <dt id="i">i</dt> <dd> <p>Lexical variable introduced (declared with my()) for the first time.</p> </dd> <dt id="&"><a id=""></a>&</dt> <dd> <p>Subroutine or method call.</p> </dd> <dt id="s">s</dt> <dd> <p>Subroutine defined.</p> </dd> <dt id="r">r</dt> <dd> <p>Format defined.</p> </dd> </dl> <p>The most useful option the cross referencer has is to save the report to a separate file. For instance, to save the report on <i>myperlprogram</i> to the file <i>report</i>:</p> <pre><code>$ perl -MO=Xref,-oreport myperlprogram</code></pre> <h2 id="The-Decompiling-Backend"><a id="The4"></a>The Decompiling Backend</h2> <p>The Deparse backend turns your Perl source back into Perl source. It can reformat along the way, making it useful as a de-obfuscator. The most basic way to use it is:</p> <pre><code>$ perl -MO=Deparse myperlprogram</code></pre> <p>You'll notice immediately that Perl has no idea of how to paragraph your code. You'll have to separate chunks of code from each other with newlines by hand. However, watch what it will do with one-liners:</p> <pre><code>$ perl -MO=Deparse -e '$op=shift||die "usage: $0 code [...]";chomp(@ARGV=<>)unless@ARGV; for(@ARGV){$was=$_;eval$op; die$@ if$@; rename$was,$_ unless$was eq $_}' -e syntax OK $op = shift @ARGV || die("usage: $0 code [...]"); chomp(@ARGV = <ARGV>) unless @ARGV; foreach $_ (@ARGV) { $was = $_; eval $op; die $@ if $@; rename $was, $_ unless $was eq $_; }</code></pre> <p>The decompiler has several options for the code it generates. For instance, you can set the size of each indent from 4 (as above) to 2 with:</p> <pre><code>$ perl -MO=Deparse,-si2 myperlprogram</code></pre> <p>The <b>-p</b> option adds parentheses where normally they are omitted:</p> <pre><code>$ perl -MO=Deparse -e 'print "Hello, world\n"' -e syntax OK print "Hello, world\n"; $ perl -MO=Deparse,-p -e 'print "Hello, world\n"' -e syntax OK print("Hello, world\n");</code></pre> <p>See <a href="/pod/B::Deparse">B::Deparse</a> for more information on the formatting options.</p> <h2 id="The-Lint-Backend"><a id="The5"></a>The Lint Backend</h2> <p>The lint backend <code>B::Lint</code> inspects programs for poor style. One programmer's bad style is another programmer's useful tool, so options let you select what is complained about.</p> <p>To run the style checker across your source code:</p> <pre><code>$ perl -MO=Lint myperlprogram</code></pre> <p>To disable context checks and undefined subroutines:</p> <pre><code>$ perl -MO=Lint,-context,-undefined-subs myperlprogram</code></pre> <p>See <a href="/pod/B::Lint">B::Lint</a> for information on the options.</p> <h2 id="The-Simple-C-Backend"><a id="The6"></a>The Simple C Backend</h2> <p>The <code>B::C</code> module saves the internal compiled state of your Perl program to a C source file, which can be turned into a native executable for that particular platform using a C compiler. The resulting program links against the Perl interpreter library, so it will not save you disk space (unless you build Perl with a shared library) or program size. It may, however, save you startup time.</p> <p>The <code>perlcc</code> tool generates such executables by default.</p> <pre><code>perlcc myperlprogram.pl</code></pre> <h3 id="C-Backend-Invocation"><a id="C"></a>C Backend Invocation</h3> <p>If there are any non-option arguments, they are taken to be names of objects to be saved (probably doesn't work properly yet). Without extra arguments, it saves the main program.</p> <pre><code> -q Be quiet. STDOUT goes to $O::BEGIN_output -qq Be very quiet. Also suppress "Syntax OK" -o<filename> Output to filename instead of STDOUT -v Be verbose. Currently gives a few compilation statistics. -- Force end of options -u<package> use package or filename. Force apparently unused subs from package to be compiled. This allows programs to use run-time eval "foo()" even when sub foo is never seen to be used at compile time. The down side is that any subs which really are never used also have code generated. This option is necessary, for example, if you have a signal handler foo which you initialise with $SIG{BAR} = "foo". A better fix, though, is just to change it to $SIG{BAR} = \&foo. You can have multiple -u or -U options. -U<package> Unuse package or filename. Ignore all subs from package to be compiled. Certain packages might not be needed at run-time, even if the pessimistic walker detects it. If required those packages will be run-time loaded then. -e ARG Eval ARG at startup -c Check and abort (used to print warnings) NYI -w Warn on undefined SYMs -l LIMIT Force max linelength to LIMIT (e.g. MSVC to 2048) -D Debug options (concat or separate flags like perl -D) o Print walkoptree OPs O Prints more OP information c COPs, prints COPs as processed (incl. file & line num) S prints SV/RE information on saving A prints AV information on saving C prints CV information on saving M prints MAGIC information on saving G prints GV information on saving u Do not print -D information when parsing unused subs. -f Force optimisations on or off one at a time. cog Copy-on-grow: PVs declared and initialised statically no-cog No copy-on-grow save-data Save package::DATA filehandles ( only available with PerlIO::scalar ) ppaddr Optimize the initialization of op_ppaddr. warn-sv Optimize the initialization of cop_warnings. av-init Faster initialization of AVs. av-init2 Initialization of AVs via ptmalloc3 independent_comalloc(). use-script-name Use the script name instead of the program name as $0. ro-inc Readonly @INC and %INC pathnames. const-strings Declares static readonly strings as const. save-sig-hash Save compile-time modifications to the %SIG hash. no-destruct Faster destruction. no-fold Do not compile unicode foldings tables, needed for m//i no-warnings Do not compile warnings hashes. stash Add all stash hashes even if not used. no-delete-pkg Do not delete compiler-internal and dependent packages. no-dyn-padlist Disable dynamic padlists (5.18). This is faster but might cause die and exit to crash. cop Omit COP, no file+line info for warnings -On Optimisation level (n = 0, 1, 2, ...). -O means -O1. -O1 -fcog -fav-init2/-fav-init -fppaddr -fwarn-sv -O2 -O1 -fro-inc -fsave-data -O3 -O2 -fsave-sig-hash -fno-destruct fconst-strings -O4 -O3 -fcop -fno-dyn-padlist</code></pre> <h3 id="C-Examples-perl-MO=C-foo.pl->-foo.c-perl-cc_harness-o-foo-foo.c"><a id="C1"></a><a id="C-Examples-perl--MO-C-foo.pl-foo.c-perl-cc_harness--o-foo-foo.c"></a>C Examples perl -MO=C foo.pl > foo.c perl cc_harness -o foo foo.c</h3> <pre><code>perl -MO=C,-v,-DcA bar.pl > /dev/null</code></pre> <p>For more information, see <a href="/pod/distribution/B-C/script/perlcc.PL">perlcc</a> and <a href="/pod/B::C">B::C</a>.</p> <h2 id="The-Bytecode-Backend"><a id="The7"></a>The Bytecode Backend</h2> <p>This backend is only useful if you also have a way to load and execute the bytecode that it produces. The <a href="#ByteLoader">"ByteLoader"</a> module provides this functionality.</p> <p>To turn a Perl program into executable byte code, you can use <code>perlcc</code> with the <code>-B</code> switch:</p> <pre><code>perlcc -B myperlprogram.pl</code></pre> <p>The byte code is machine independent, so once you have a compiled module or program, it is as portable as Perl source (assuming that the user of the module or program has a modern-enough Perl interpreter to decode the byte code).</p> <h3 id="Bytecode-Backend-Invocation"><a id="Bytecode"></a>Bytecode Backend Invocation</h3> <p>If there are any non-option arguments, they are taken to be names of objects to be saved (probably doesn't work properly yet). Without extra arguments, it saves the main program.</p> <pre><code> -q Be quiet. STDOUT goes to $O::BEGIN_output -qq Be very quiet. Also suppress "Syntax OK" -ofilename Output to filename instead of STDOUT. NYI -v Be verbose. -- Force end of options. NYI -f Force optimisations on or off one at a time. Each can be preceded by no- to turn the option off. compress-nullops Only fills in the necessary fields of ops which have been optimised away by perl's internal compiler. omit-sequence-numbers Leaves out code to fill in the op_seq field of all ops which is only used by perl's internal compiler. bypass-nullops If op->op_next ever points to a NULLOP, replaces the op_next field with the first non-NULLOP in the path of execution. -s strip-syntax-tree Leaves out code to fill in the pointers which link the internal syntax tree together. They're not needed at run-time but leaving them out will make it impossible to recompile or disassemble the resulting program. It will also stop "goto label" statements from working. NYI -On Optimisation level (n = 0, 1, 2, ...). -O means -O1. -O1 sets -fcompress-nullops -fomit-sequence numbers. -O6 adds -fstrip-syntax-tree. NYI -D Debug options (concat or separate flags like perl -D) O OPs, prints each OP as it's processed. b print debugging information about bytecompiler progress a tells the assembler to include source assembler lines in its output as bytecode comments. C prints each CV taken from the final symbol tree walk. -S Output assembler source rather than piping it through the assembler and outputting bytecode. -H add #! perl shebang header -s scan and keep keep syntax tree if goto op found. scan the script for C<# line ..> directives and for <goto LABEL> expressions. When gotos are found keep the syntax tree. -b Save all the BEGIN blocks. Normally only BEGIN blocks that require other files (ex. use Foo;) are saved. -k keep syntax tree to disassemble the plc. it is stripped by default. -TI testing, dump the @INC av -TF file testing, sets COP::file -m Compile as a module rather than a standalone program. Currently this just means that the bytecodes for initialising main_start, main_root and curpad are omitted.</code></pre> <h3 id="Bytecode-Invocation-Examples"><a id="Bytecode1"></a>Bytecode Invocation Examples</h3> <pre><code>perl -MO=Bytecode,-O6,-H,-ofoo.plc foo.pl ./foo.plc perl -MO=Bytecode,-S foo.pl > foo.S assemble foo.S > foo.plc perl -MByteLoader foo.plc perl -MO=Bytecode,-m,-oFoo.pmc Foo.pm</code></pre> <h2 id="The-Optimized-C-Backend"><a id="The8"></a>The Optimized C Backend</h2> <p>The <code>B::CC</code> optimized C backend will turn your Perl program's run time code-path into an equivalent (but optimized) C program that manipulates the Perl data structures directly. The program will still link against the Perl interpreter library, to allow for eval(), <code>s///e</code>, <code>require</code>, etc.</p> <p>The <code>perlcc</code> tool generates such executables when using the <code>-O</code> switch. To compile a Perl program (ending in <code>.pl</code> or <code>.p</code>):</p> <pre><code>perlcc -O myperlprogram.pl</code></pre> <p>To produce a shared library from a Perl module (ending in <code>.pm</code>):</p> <pre><code>perlcc -O Myperlmodule.pm</code></pre> <h3 id="CC-Backend-Invocation"><a id="CC"></a>CC Backend Invocation</h3> <p>If there are any non-option arguments, they are taken to be names of subs to be saved. Without extra arguments, it saves the main program. B::C takes all B::C options plus a few new ones:</p> <pre><code> -D Debug options (concat or separate flags like perl -D) o Enable B debugging r Writes debugging output to STDERR just as it's about to write to the program's runtime. Otherwise writes debugging info as comments in its C output. O Outputs each OP as it's compiled s Outputs the contents of the shadow stack at each OP p Outputs the contents of the shadow pad of lexicals as it's loaded for each sub or the main program. q Outputs the name of each fake PP function in the queue as it's about to processes. l Output the filename and line number of each original line of Perl code as it's processed (pp_nextstate). t Outputs timing information of compilation stages -f Force optimisations on or off one at a time. cog Copy-on-grow: PVs declared and initialised statically freetmps-each-bblock Delays FREETMPS from the end of each statement to the end of the each basic block. freetmps-each-loop Delays FREETMPS from the end of each statement to the end of the group of basic blocks forming a loop. At most one of the freetmps-each-* options can be used. no-inline-ops Turn off aggressive inlining of ops omit-taint Omits generating code for handling perl's tainting mechanism. -On Optimisation level (n = 0, 1, 2, ...). -O means -O1. -O1 -ffreetmps-each-bblock -O2 -O1 -ffreetmps-each-loop</code></pre> <p>All B::C -O3 optimisations are automatically used.</p> <h3 id="CC-Invocation-Example"><a id="CC1"></a>CC Invocation Example</h3> <pre><code>perl -MO=CC,-O2,-ofoo.c foo.pl perl cc_harness -o foo foo.c perl -MO=CC,-mFoo,-oFoo.c Foo.pm perl cc_harness -shared -c -o Foo.so Foo.c perlcc -O myperlprogram.pl perlcc -O MyperlModule.pm</code></pre> <p>See also <a href="/pod/distribution/B-C/script/perlcc.PL">perlcc</a> and <a href="/pod/B::CC">B::CC</a>.</p> <h2 id="Backends-For-Debugging"><a id="Backends"></a>Backends For Debugging</h2> <pre><code>perl -MO=Terse,exec foo.pl perl -MO=Debug bar.pl</code></pre> <h1 id="Module-List-for-the-Compiler-Suite"><a id="Module"></a>Module List for the Compiler Suite</h1> <dl> <dt id="B">B</dt> <dd> <p>This module is the introspective ("reflective" in Java terms) module, which allows a Perl program to inspect its innards. The backend modules all use this module to gain access to the compiled parse tree. You, the user of a backend module, will not need to interact with B.</p> </dd> <dt id="O">O</dt> <dd> <p>This module is the front-end to the compiler's backends. Normally called something like this:</p> <pre><code>$ perl -MO=Deparse,-q myperlprogram</code></pre> <p>This is like saying <code>use O 'Deparse' qw(-q)</code> in your Perl program.</p> <p>Used with "perl -MO=Backend,-foo,-obar prog.pl" to invoke the backend B::Backend with options -foo and -obar. O invokes the sub B::Backend::compile() with arguments -foo and -obar at BEGIN time. That compile() sub must do any inital argument processing replied. If unsuccessful, it should return a string which O arranges to be printed as an error message followed by a clean error exit. In the normal case where any option processing in compile() is successful, it should return a sub ref (usually a closure) to perform the actual compilation. When O regains control, it ensures that the "-c" option is forced (so that the program being compiled doesn't end up running) and registers a CHECK block to call back the sub ref returned from the backend's compile(). Perl then continues by parsing prog.pl (just as it would with "perl -c prog.pl") and after doing so, assuming there are no parse-time errors, the CHECK block of O gets called and the actual backend compilation happens. Phew.</p> </dd> <dt id="ByteLoader">ByteLoader</dt> <dd> <p>This run-time module parses and executes the binary bytecode produced by <a href="#B%3A%3ABytecode">"B::Bytecode"</a>. These are normally <code>.plc</code> for scripts and <code>.pmc</code> files for modules.</p> <p>Note that Perl CORE favors <code>.pmc</code> over <code>.pm</code> files, so it would be wise to add the ByteLoader module in advance. Either statically linked into your perl (see <code>Config{static_ext}</code>) or with <code>-MByteLoader</code> on the command line.</p> </dd> <dt id="B::Asmdata"><a id="B4"></a>B::Asmdata</dt> <dd> <p>This module is used by the B::Assembler module, which is in turn used by the B::Bytecode module, which stores a parse-tree as bytecode for later loading. It's not a backend itself, but rather a component of a backend.</p> </dd> <dt id="B::Assembler"><a id="B5"></a>B::Assembler</dt> <dd> <p>This module turns a parse-tree into data suitable for storing and later decoding back into a parse-tree. It's not a backend itself, but rather a component of a backend. It's used by the <i>assemble</i> program that produces <code>.plc</code> bytecode.</p> </dd> <dt id="B::Bblock"><a id="B6"></a>B::Bblock</dt> <dd> <p>This module is used by the B::CC backend. It walks "basic blocks". A basic block is a series of operations which is known to execute from start to finish, with no possibility of branching or halting or jumps into inner ops.</p> </dd> <dt id="B::Bytecode"><a id="B7"></a>B::Bytecode</dt> <dd> <p>This module is a backend that generates bytecode from a program's parse tree. This bytecode is written to a <code>.plc</code> file, from where it can later be reconstructed back into a parse tree. The goal is to do the expensive program compilation once, save the interpreter's state into a file, and then restore the state from the file when the program is to be executed. See <a href="#The-Bytecode-Backend">"The Bytecode Backend"</a> for details about usage.</p> <p>With the -M switch you can also produce bytecode compiled modules as <code>.pmc</code> files, which if pesent in the @INC patch are favored over normal <code>.pm</code> files. You need to load the <a href="#ByteLoader">"ByteLoader"</a> module then also, which is a problem, because it is not in CORE anymore.</p> </dd> <dt id="B::C"><a id="B8"></a>B::C</dt> <dd> <p>This module writes out C code corresponding to the parse tree and other interpreter internal structures. You compile the corresponding C file, and get an executable file that will restore the internal structures and the Perl interpreter will begin running the program. See <a href="#The-Simple-C-Backend">"The Simple C Backend"</a> for details about usage.</p> </dd> <dt id="B::CC"><a id="B9"></a>B::CC</dt> <dd> <p>This module writes out C code corresponding to your program's operations. Unlike the <code>B::C</code> module, which merely stores the interpreter and its state in a C program, the <code>B::CC</code> module makes a C program that does not involve the interpreter. As a consequence, programs translated into C by <code>B::CC</code> can execute faster than normal interpreted programs. See <a href="#The-Optimized-C-Backend">"The Optimized C Backend"</a> for details about usage.</p> </dd> <dt id="B::Concise"><a id="B10"></a>B::Concise</dt> <dd> <p>This module prints a concise (but complete) version of the Perl parse tree. Its output is more customizable than the one of B::Terse or B::Debug (and it can emulate them). This module useful for people who are writing their own backend, or who are learning about the Perl internals. It's not useful to the average programmer.</p> </dd> <dt id="B::Debug"><a id="B11"></a>B::Debug</dt> <dd> <p>This module dumps the Perl parse tree in verbose detail to STDOUT. It's useful for people who are writing their own backend, or who are learning about the Perl internals. It's not useful to the average programmer.</p> </dd> <dt id="B::Deparse1"><a id="B12"></a>B::Deparse</dt> <dd> <p>This module produces Perl source code from the compiled parse tree. It is useful in debugging and deconstructing other people's code, also as a pretty-printer for your own source. See <a href="#The-Decompiling-Backend">"The Decompiling Backend"</a> for details about usage.</p> </dd> <dt id="B::Disassembler"><a id="B13"></a>B::Disassembler</dt> <dd> <p>This module decodes <code>.plc</code> bytecode back into a readable parse-tree, the reverse of the <a href="#B%3A%3AAssembler">"B::Assembler"</a>. It's not a backend itself, but rather a component of a backend. It's used by the <i>disassemble</i> program that produces bytecode.</p> </dd> <dt id="B::Lint1"><a id="B14"></a>B::Lint</dt> <dd> <p>This module inspects the compiled form of your source code for things which, while some people frown on them, aren't necessarily bad enough to justify a warning. For instance, use of an array in scalar context without explicitly saying <code>scalar(@array)</code> is something that Lint can identify. See <a href="#The-Lint-Backend">"The Lint Backend"</a> for details about usage.</p> </dd> <dt id="B::Showlex"><a id="B15"></a>B::Showlex</dt> <dd> <p>This module prints out the my() variables used in a function or a file. To get a list of the my() variables used in the subroutine mysub() defined in the file myperlprogram:</p> <pre><code>$ perl -MO=Showlex,mysub myperlprogram</code></pre> <p>To get a list of the my() variables used in the file myperlprogram:</p> <pre><code>$ perl -MO=Showlex myperlprogram</code></pre> <p>[BROKEN]</p> </dd> <dt id="B::Terse"><a id="B16"></a>B::Terse</dt> <dd> <p>This module prints the contents of the parse tree, but without as much information as <a href="#B%3A%3ADebug">"B::Debug"</a>. For comparison, <code>print "Hello, world."</code> produced 96 lines of output from B::Debug, but only 6 from B::Terse.</p> <p>This module is useful for people who are writing their own backend, or who are learning about the Perl internals. It's not useful to the average programmer.</p> </dd> <dt id="B::Xref1"><a id="B17"></a>B::Xref</dt> <dd> <p>This module prints a report on where the variables, subroutines, and formats are defined and used within a program and the modules it loads. See <a href="#The-Cross-Referencing-Backend">"The Cross Referencing Backend"</a> for details about usage.</p> </dd> </dl> <h1 id="KNOWN-PROBLEMS"><a id="KNOWN"></a>KNOWN PROBLEMS</h1> <p>BEGIN{} blocks are executed before compiling your code. Any external state that is initialized in BEGIN{}, such as main code in use'd modules, opening files, initiating database connections etc., do not behave properly. To work around this, Perl has an INIT{} block that corresponds to code being executed before your program begins running but after your program has finished being compiled. Execution order: BEGIN{}, (possible save of state through compiler back-end), INIT{}, program runs, END{}.</p> <p>Yet unsupported:</p> <pre><code>- attribute handlers (i.e. run-time attributes) - compile-time perlio layers - re-eval groups (?{}) - smartmatch subrefs - compile-time stash-magic delete renames to ANON</code></pre> <p>CC backend: goto, sort with non-default comparison. last for non-loop blocks.</p> <p>See <i>STATUS</i></p> <h2 id="Other-perl-to-exe-compilers"><a id="Other"></a>Other perl to exe compilers</h2> <p>Maybe you want to look for the free <a href="/pod/PAR">PAR</a> module or some commercial products, like <code>perl2exe</code> at <a href="http://www.indigostar.com/perl2exe.htm">http://www.indigostar.com/perl2exe.htm</a> and <code>perlapp</code> as <code>PerlDevKit</code> from ActiveState at <a href="http://www.activestate.com/Products/perl_dev_kit/">http://www.activestate.com/Products/perl_dev_kit/</a></p> <p>These are technically no compilers, just <b>source packagers</b> with a simple native code unpacker. Run-time behaviour is actually slower than with a normal perl source or real compiler, because of the additional unpacking and check steps. It's just convenient to have single file applications.</p> <p>The simpliest windows <i>"compiler"</i> would be then <i>pl2exe.pl</i> in <a href="/pod/C::DynaLib">C::DynaLib</a>.</p> <p>Several years ago the <code>undump</code> functionality used to work on several platforms. See <a href="/pod/perlrun">perlrun</a> for <code>-u</code>. Work is planned to revive <code>undump</code>.</p> <h1 id="AUTHOR">AUTHOR</h1> <p>This document was originally written by Nathan Torkington, and was maintained by the perl5-porters mailing list <i>perl5-porters@perl.org</i> up to Perl version 5.8.</p> <p>This version with all the compiler options is now part of the <code>B::C</code> compiler module, maintained by Reini Urban <i>rurban@cpan.org</i>.</p> <h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1> <p><a href="/pod/perlguts">perlguts</a>, <a href="/pod/illguts">illguts</a>, <a href="/pod/distribution/B-C/perloptree.pod">perloptree</a></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">×</button> <h4 class="modal-title">Module Install Instructions</h4> </div> <div class="modal-body"> <p>To install B::C, 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 B::C</code></pre> <p><a href="/pod/CPAN">CPAN shell</a></p> <pre><code>perl -MCPAN -e shell install B::C</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">×</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>