CINXE.COM

IO::Handle - supply object methods for I/O handles - metacpan.org

<!DOCTYPE html> <html lang="en-US"> <head> <title>IO::Handle - supply object methods for I/O handles - 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 IO - MetaCPAN" href="/dist/IO/releases.rss" /> <link rel="canonical" href="https://metacpan.org/pod/IO::Handle" /> <meta name="description" content="supply object methods for I/O handles" /> <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/IO::Handle" /> <meta property="og:title" content="IO::Handle" /> <meta property="og:description" content="supply object methods for I/O handles" /> <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 IO was released."> <span class="relatize">30 Dec 2023 20:22:15 UTC</span> </div> </li> <li> Distribution: <a href="/dist/IO">IO</a> </li> <li> Module version: 1.55 </li> <li> <a data-keyboard-shortcut="g s" href="/dist/IO/source/lib/IO/Handle.pm">Source</a> (<a href="/dist/IO/source/lib/IO/Handle.pm?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g b" href="/dist/IO/source/lib/IO">Browse</a> (<a href="/dist/IO/source/lib/IO?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g c" href="/dist/IO/changes">Changes</a> </li> <li> <a class="nopopup" href="/dist/IO/contribute">How to Contribute</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/Perl/perl5">Repository</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/perl/perl5/issues">Issues</a> </li> <li> <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=IO+1.55" title="Matrix">Testers</a> <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO.html?oncpan=1&amp;distmat=1&amp;version=1.55&amp;grade=2" style="color: #090">1744</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO.html?oncpan=1&amp;distmat=1&amp;version=1.55&amp;grade=3" style="color: #900">26</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO.html?oncpan=1&amp;distmat=1&amp;version=1.55&amp;grade=4">0</a>)</span> </li> <li> <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/TODDR/IO-1.55">Kwalitee</a> </li> <li> <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on IO 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: 5 </div> </li> <li> License: perl_5 </li> <li class="nav-header">Activity</li> <li> <div class="activity-graph"> <img src="/dist/IO/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/T/TO/TODDR/IO-1.55.tar.gz"> Download (<span itemprop="fileSize">185.76KB</span>)</a> </li> <li> <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FTODDR%2FIO-1.55%2Flib%2FIO%2FHandle.pm"> MetaCPAN Explorer </a> </li> <li> <a href="/dist/IO/permissions"> Permissions </a> </li> <li> <a href="/dist/IO/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:IO"> <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="IO"> <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/TODDR/IO-1.55/view/lib/IO/Handle.pm" >1.55 (TODDR on 2023-12-30)</option> <option value="/release/TODDR/IO-1.51/view/lib/IO/Handle.pm" >1.51 (TODDR on 2023-01-23)</option> <option value="/release/GBARR/IO-1.25/view/lib/IO/Handle.pm" >1.25 (GBARR on 2009-05-14)</option> <optgroup label="BackPAN">' <option value="/release/TODDR/IO-1.55_01/view/lib/IO/Handle.pm" >1.55_01 DEV (TODDR on 2023-12-28)</option> <option value="/release/TODDR/IO-1.50/view/lib/IO/Handle.pm" >1.50 (TODDR on 2022-05-03)</option> <option value="/release/TODDR/IO-1.49_01/view/lib/IO/Handle.pm" >1.49_01 DEV (TODDR on 2022-04-28)</option> <option value="/release/TODDR/IO-1.48/view/lib/IO/Handle.pm" >1.48 (TODDR on 2021-09-01)</option> <option value="/release/TODDR/IO-1.45/view/lib/IO/Handle.pm" >1.45 (TODDR on 2021-01-04)</option> <option value="/release/TODDR/IO-1.42/view/lib/IO/Handle.pm" >1.42 (TODDR on 2020-01-20)</option> <option value="/release/TODDR/IO-1.41/view/lib/IO/Handle.pm" >1.41 (TODDR on 2020-01-20)</option> <option value="/release/RJBS/IO-1.41_50/view/lib/IO/Handle.pm" >1.41_50 DEV (RJBS on 2019-12-16)</option> <option value="/release/RJBS/IO-1.41-TRIAL/view/lib/IO/Handle.pm" >1.41-TRIAL DEV (RJBS on 2019-12-12)</option> <option value="/release/TODDR/IO-1.39/view/lib/IO/Handle.pm" >1.39 (TODDR on 2018-04-19)</option> <option value="/release/TODDR/IO-1.38_02/view/lib/IO/Handle.pm" >1.38_02 DEV (TODDR on 2018-04-19)</option> <option value="/release/TODDR/IO-1.36_01/view/lib/IO/Handle.pm" >1.36_01 DEV (TODDR on 2016-04-12)</option> <option value="/release/TODDR/IO-1.35_02/view/lib/IO/Handle.pm" >1.35_02 DEV (TODDR on 2015-08-01)</option> <option value="/release/TODDR/IO-1.35_01/view/lib/IO/Handle.pm" >1.35_01 DEV (TODDR on 2015-07-28)</option> <option value="/release/WOLFSAGE/IO-1.31-TRIAL/view/lib/IO/Handle.pm" >1.31-TRIAL DEV (WOLFSAGE on 2014-06-18)</option> <option value="/release/GBARR/IO-1.24/view/lib/IO/Handle.pm" >1.24 (GBARR on 2009-05-11)</option> <option value="/release/GBARR/IO-1.2301/view/lib/IO/Handle.pm" >1.2301 (GBARR on 2006-03-30)</option> <option value="/release/GBARR/IO-1.23/view/lib/IO/Handle.pm" >1.23 (GBARR on 2006-03-26)</option> <option value="/release/GBARR/IO-1.22/view/lib/IO/Handle.pm" >1.22 (GBARR on 2005-09-05)</option> <option value="/release/GBARR/IO-1.20/view/lib/IO/Handle.pm" >1.20 (GBARR on 1998-07-24)</option> <option value="/release/GBARR/IO-1.19/view/lib/IO/Handle.pm" >1.19 (GBARR on 1998-02-06)</option> <option value="/release/GBARR/IO-1.1804/view/lib/IO/Handle.pm" >1.1804 (GBARR on 1998-01-18)</option> <option value="/release/GBARR/IO-1.1803/view/lib/IO/Handle.pm" >1.1803 (GBARR on 1997-12-22)</option> <option value="/release/GBARR/IO-1.1802/view/lib/IO/Handle.pm" >1.1802 (GBARR on 1997-11-13)</option> <option value="/release/GBARR/IO-1.1801/view/lib/IO/Handle.pm" >1.1801 (GBARR on 1997-10-23)</option> <option value="/release/GBARR/IO-1.18/view/lib/IO/Handle.pm" >1.18 (GBARR on 1997-10-14)</option> <option value="/release/GBARR/IO-1.1702/view/lib/IO/Handle.pm" >1.1702 (GBARR on 1997-10-09)</option> <option value="/release/GBARR/IO-1.1701/view/lib/IO/Handle.pm" >1.1701 (GBARR on 1997-10-05)</option> <option value="/release/GBARR/IO-1.17/view/lib/IO/Handle.pm" >1.17 (GBARR on 1997-10-04)</option> <option value="/release/GBARR/IO-1.15/view/lib/IO/Handle.pm" >1.15 (GBARR on 1997-01-19)</option> <option value="/release/GBARR/IO-1.14/view/lib/IO/Handle.pm" >1.14 (GBARR on 1996-12-24)</option> <option value="/release/GBARR/IO-1.12/view/lib/IO/Handle.pm" >1.12 (GBARR on 1996-09-19)</option> <option value="/release/GBARR/IO-1.11-1/view/lib/IO/Handle.pm" >1.11-1 (GBARR on 1996-09-13)</option> <option value="/release/GBARR/IO-1.11/view/lib/IO/Handle.pm" >1.11 (GBARR on 1996-09-12)</option> <option value="/release/GBARR/IO-1.10/view/lib/IO/Handle.pm" >1.10 (GBARR on 1996-09-11)</option> <option value="/release/GBARR/IO-1.09/view/lib/IO/Handle.pm" >1.09 (GBARR on 1996-07-26)</option> <option value="/release/GBARR/IO-1.08/view/lib/IO/Handle.pm" >1.08 (GBARR on 1996-06-24)</option> <option value="/release/GBARR/IO-1.07/view/lib/IO/Handle.pm" >1.07 (GBARR on 1996-05-08)</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/TODDR/IO-1.55/diff/TODDR/IO-1.55/lib/IO/Handle.pm" >1.55 (TODDR on 2023-12-30)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.51/lib/IO/Handle.pm" >1.51 (TODDR on 2023-01-23)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.25/lib/IO/Handle.pm" >1.25 (GBARR on 2009-05-14)</option> <optgroup label="BackPAN">' <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.55_01/lib/IO/Handle.pm" >1.55_01 DEV (TODDR on 2023-12-28)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.50/lib/IO/Handle.pm" >1.50 (TODDR on 2022-05-03)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.49_01/lib/IO/Handle.pm" >1.49_01 DEV (TODDR on 2022-04-28)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.48/lib/IO/Handle.pm" >1.48 (TODDR on 2021-09-01)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.45/lib/IO/Handle.pm" >1.45 (TODDR on 2021-01-04)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.42/lib/IO/Handle.pm" >1.42 (TODDR on 2020-01-20)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.41/lib/IO/Handle.pm" >1.41 (TODDR on 2020-01-20)</option> <option value="/release/TODDR/IO-1.55/diff/RJBS/IO-1.41_50/lib/IO/Handle.pm" >1.41_50 DEV (RJBS on 2019-12-16)</option> <option value="/release/TODDR/IO-1.55/diff/RJBS/IO-1.41-TRIAL/lib/IO/Handle.pm" >1.41-TRIAL DEV (RJBS on 2019-12-12)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.39/lib/IO/Handle.pm" >1.39 (TODDR on 2018-04-19)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.38_02/lib/IO/Handle.pm" >1.38_02 DEV (TODDR on 2018-04-19)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.36_01/lib/IO/Handle.pm" >1.36_01 DEV (TODDR on 2016-04-12)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.35_02/lib/IO/Handle.pm" >1.35_02 DEV (TODDR on 2015-08-01)</option> <option value="/release/TODDR/IO-1.55/diff/TODDR/IO-1.35_01/lib/IO/Handle.pm" >1.35_01 DEV (TODDR on 2015-07-28)</option> <option value="/release/TODDR/IO-1.55/diff/WOLFSAGE/IO-1.31-TRIAL/lib/IO/Handle.pm" >1.31-TRIAL DEV (WOLFSAGE on 2014-06-18)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.24/lib/IO/Handle.pm" >1.24 (GBARR on 2009-05-11)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.2301/lib/IO/Handle.pm" >1.2301 (GBARR on 2006-03-30)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.23/lib/IO/Handle.pm" >1.23 (GBARR on 2006-03-26)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.22/lib/IO/Handle.pm" >1.22 (GBARR on 2005-09-05)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.20/lib/IO/Handle.pm" >1.20 (GBARR on 1998-07-24)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.19/lib/IO/Handle.pm" >1.19 (GBARR on 1998-02-06)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.1804/lib/IO/Handle.pm" >1.1804 (GBARR on 1998-01-18)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.1803/lib/IO/Handle.pm" >1.1803 (GBARR on 1997-12-22)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.1802/lib/IO/Handle.pm" >1.1802 (GBARR on 1997-11-13)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.1801/lib/IO/Handle.pm" >1.1801 (GBARR on 1997-10-23)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.18/lib/IO/Handle.pm" >1.18 (GBARR on 1997-10-14)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.1702/lib/IO/Handle.pm" >1.1702 (GBARR on 1997-10-09)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.1701/lib/IO/Handle.pm" >1.1701 (GBARR on 1997-10-05)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.17/lib/IO/Handle.pm" >1.17 (GBARR on 1997-10-04)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.15/lib/IO/Handle.pm" >1.15 (GBARR on 1997-01-19)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.14/lib/IO/Handle.pm" >1.14 (GBARR on 1996-12-24)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.12/lib/IO/Handle.pm" >1.12 (GBARR on 1996-09-19)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.11-1/lib/IO/Handle.pm" >1.11-1 (GBARR on 1996-09-13)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.11/lib/IO/Handle.pm" >1.11 (GBARR on 1996-09-12)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.10/lib/IO/Handle.pm" >1.10 (GBARR on 1996-09-11)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.09/lib/IO/Handle.pm" >1.09 (GBARR on 1996-07-26)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.08/lib/IO/Handle.pm" >1.08 (GBARR on 1996-06-24)</option> <option value="/release/TODDR/IO-1.55/diff/GBARR/IO-1.07/lib/IO/Handle.pm" >1.07 (GBARR on 1996-05-08)</option> </optgroup> </select> </li> <li> <ul class="dependencies"> <li class="nav-header">Dependencies</li> <li><a href="/pod/File::Temp" title="File::Temp" class="ellipsis">File::Temp</a></li> <li><a href="/pod/Test::More" title="Test::More" class="ellipsis">Test::More</a></li> <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li> <li> <hr> </li> <li> <a href="/module/IO::Handle/requires">Reverse dependencies</a> </li> <li> <a href="http://deps.cpantesters.org/?module=IO%3A%3AHandle">CPAN Testers List</a> </li> <li> <a href="https://cpandeps.grinnz.com/?dist=IO">Dependency graph</a> </li> </ul> </li> <li class="nav-header">Permalinks</li> <li> <a href="/release/TODDR/IO-1.55/view/lib/IO/Handle.pm">This version</a> </li> <li> <a href="/pod/IO::Handle">Latest version</a> </li> <li> <div class="plussers"> <div class="nav-header">++ed by:</div> <div> <a class="display-all" href="/author/YUUKI"><img src="https://www.gravatar.com/avatar/4c7dbdb398e26e0ef81e2c9b6b472742?d=identicon&amp;s=20" title="YUUKI" alt="YUUKI"></a> <a class="display-all" href="/author/PERLBOY"><img src="https://www.gravatar.com/avatar/8553a87a00c8d2efcd77fb16e6eb73c9?d=identicon&amp;s=20" title="PERLBOY" alt="PERLBOY"></a> <a class="display-all" href="/author/FRACTAL"><img src="https://www.gravatar.com/avatar/4f4ebf9a8b36a6d1905586ed479e693e?d=identicon&amp;s=20" title="FRACTAL" alt="FRACTAL"></a> <a class="display-all" href="/author/RRWO"><img src="https://www.gravatar.com/avatar/4a5274bc5d690ee3d619f044778771a7?d=identicon&amp;s=20" title="RRWO" alt="RRWO"></a> <a class="display-all" href="/author/XAERXESS"><img src="https://www.gravatar.com/avatar/3edb051118d90ce2ebc919d31830a4e8?d=identicon&amp;s=20" title="XAERXESS" alt="XAERXESS"></a> </div> <!-- Display counts of plussers--> <div> <a href="/dist/IO/plussers">31 PAUSE users</a> </div> <div> 35 non-PAUSE users </div> </div> </li> <li> <div> <button class="contributors-show-button btn-link">and 1 contributors</button> <div id="metacpan_contributors" class="slide-out slide-out-hidden"> <div> <ul> <li class="contributor" data-cpan-author="P5P" data-contrib-email="perl5-porters@perl.org" > <a href="/author/P5P" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/3e9f73c7cca8f99ee158472e23a49eb8?d=identicon&amp;s=20" /> Perl5 Porters </a> </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/TODDR" class="author-name">Todd Rinaldo</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/TODDR/IO-1.55/view/lib/IO/Handle.pm" >1.55 (TODDR on 2023-12-30)</option> <option value="/release/TODDR/IO-1.51/view/lib/IO/Handle.pm" >1.51 (TODDR on 2023-01-23)</option> <option value="/release/GBARR/IO-1.25/view/lib/IO/Handle.pm" >1.25 (GBARR on 2009-05-14)</option> <optgroup label="BackPAN">' <option value="/release/TODDR/IO-1.55_01/view/lib/IO/Handle.pm" >1.55_01 DEV (TODDR on 2023-12-28)</option> <option value="/release/TODDR/IO-1.50/view/lib/IO/Handle.pm" >1.50 (TODDR on 2022-05-03)</option> <option value="/release/TODDR/IO-1.49_01/view/lib/IO/Handle.pm" >1.49_01 DEV (TODDR on 2022-04-28)</option> <option value="/release/TODDR/IO-1.48/view/lib/IO/Handle.pm" >1.48 (TODDR on 2021-09-01)</option> <option value="/release/TODDR/IO-1.45/view/lib/IO/Handle.pm" >1.45 (TODDR on 2021-01-04)</option> <option value="/release/TODDR/IO-1.42/view/lib/IO/Handle.pm" >1.42 (TODDR on 2020-01-20)</option> <option value="/release/TODDR/IO-1.41/view/lib/IO/Handle.pm" >1.41 (TODDR on 2020-01-20)</option> <option value="/release/RJBS/IO-1.41_50/view/lib/IO/Handle.pm" >1.41_50 DEV (RJBS on 2019-12-16)</option> <option value="/release/RJBS/IO-1.41-TRIAL/view/lib/IO/Handle.pm" >1.41-TRIAL DEV (RJBS on 2019-12-12)</option> <option value="/release/TODDR/IO-1.39/view/lib/IO/Handle.pm" >1.39 (TODDR on 2018-04-19)</option> <option value="/release/TODDR/IO-1.38_02/view/lib/IO/Handle.pm" >1.38_02 DEV (TODDR on 2018-04-19)</option> <option value="/release/TODDR/IO-1.36_01/view/lib/IO/Handle.pm" >1.36_01 DEV (TODDR on 2016-04-12)</option> <option value="/release/TODDR/IO-1.35_02/view/lib/IO/Handle.pm" >1.35_02 DEV (TODDR on 2015-08-01)</option> <option value="/release/TODDR/IO-1.35_01/view/lib/IO/Handle.pm" >1.35_01 DEV (TODDR on 2015-07-28)</option> <option value="/release/WOLFSAGE/IO-1.31-TRIAL/view/lib/IO/Handle.pm" >1.31-TRIAL DEV (WOLFSAGE on 2014-06-18)</option> <option value="/release/GBARR/IO-1.24/view/lib/IO/Handle.pm" >1.24 (GBARR on 2009-05-11)</option> <option value="/release/GBARR/IO-1.2301/view/lib/IO/Handle.pm" >1.2301 (GBARR on 2006-03-30)</option> <option value="/release/GBARR/IO-1.23/view/lib/IO/Handle.pm" >1.23 (GBARR on 2006-03-26)</option> <option value="/release/GBARR/IO-1.22/view/lib/IO/Handle.pm" >1.22 (GBARR on 2005-09-05)</option> <option value="/release/GBARR/IO-1.20/view/lib/IO/Handle.pm" >1.20 (GBARR on 1998-07-24)</option> <option value="/release/GBARR/IO-1.19/view/lib/IO/Handle.pm" >1.19 (GBARR on 1998-02-06)</option> <option value="/release/GBARR/IO-1.1804/view/lib/IO/Handle.pm" >1.1804 (GBARR on 1998-01-18)</option> <option value="/release/GBARR/IO-1.1803/view/lib/IO/Handle.pm" >1.1803 (GBARR on 1997-12-22)</option> <option value="/release/GBARR/IO-1.1802/view/lib/IO/Handle.pm" >1.1802 (GBARR on 1997-11-13)</option> <option value="/release/GBARR/IO-1.1801/view/lib/IO/Handle.pm" >1.1801 (GBARR on 1997-10-23)</option> <option value="/release/GBARR/IO-1.18/view/lib/IO/Handle.pm" >1.18 (GBARR on 1997-10-14)</option> <option value="/release/GBARR/IO-1.1702/view/lib/IO/Handle.pm" >1.1702 (GBARR on 1997-10-09)</option> <option value="/release/GBARR/IO-1.1701/view/lib/IO/Handle.pm" >1.1701 (GBARR on 1997-10-05)</option> <option value="/release/GBARR/IO-1.17/view/lib/IO/Handle.pm" >1.17 (GBARR on 1997-10-04)</option> <option value="/release/GBARR/IO-1.15/view/lib/IO/Handle.pm" >1.15 (GBARR on 1997-01-19)</option> <option value="/release/GBARR/IO-1.14/view/lib/IO/Handle.pm" >1.14 (GBARR on 1996-12-24)</option> <option value="/release/GBARR/IO-1.12/view/lib/IO/Handle.pm" >1.12 (GBARR on 1996-09-19)</option> <option value="/release/GBARR/IO-1.11-1/view/lib/IO/Handle.pm" >1.11-1 (GBARR on 1996-09-13)</option> <option value="/release/GBARR/IO-1.11/view/lib/IO/Handle.pm" >1.11 (GBARR on 1996-09-12)</option> <option value="/release/GBARR/IO-1.10/view/lib/IO/Handle.pm" >1.10 (GBARR on 1996-09-11)</option> <option value="/release/GBARR/IO-1.09/view/lib/IO/Handle.pm" >1.09 (GBARR on 1996-07-26)</option> <option value="/release/GBARR/IO-1.08/view/lib/IO/Handle.pm" >1.08 (GBARR on 1996-06-24)</option> <option value="/release/GBARR/IO-1.07/view/lib/IO/Handle.pm" >1.07 (GBARR on 1996-05-08)</option> </optgroup> </select> <a data-keyboard-shortcut="g d" class="release-name" href="/dist/IO">IO-1.55</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 five &#10; • 5902 direct dependents &#10; • 26509 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="#7ea3f2" /> <rect x="20" y="0" width="4" height="15" fill="#7ea3f2" /> </g> </svg> </span> <div id="IO-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="IO-1.55"> <input type="hidden" name="author" value="TODDR"> <input type="hidden" name="distribution" value="IO"> <button type="submit" class="favorite highlight"><span>66</span> ++</button> </form> </div> <div class="show-logged-out"> <button class="fav-not-logged-in favorite highlight"><span>66</span> ++</button> </div> / <span>IO::Handle</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="#SYNOPSIS">SYNOPSIS</a></li> <li><a href="#DESCRIPTION">DESCRIPTION</a></li> <li><a href="#CONSTRUCTOR">CONSTRUCTOR</a></li> <li><a href="#METHODS">METHODS</a></li> <li><a href="#NOTE">NOTE</a></li> <li><a href="#SEE-ALSO">SEE ALSO</a></li> <li><a href="#BUGS">BUGS</a></li> <li><a href="#HISTORY">HISTORY</a></li> </ul></nav> <div class="pod anchors"> <h1 id="NAME">NAME</h1> <p>IO::Handle - supply object methods for I/O handles</p> <h1 id="SYNOPSIS">SYNOPSIS</h1> <pre><code>use IO::Handle; my $io = IO::Handle-&gt;new(); if ($io-&gt;fdopen(fileno(STDIN),&quot;r&quot;)) { print $io-&gt;getline; $io-&gt;close; } my $io = IO::Handle-&gt;new(); if ($io-&gt;fdopen(fileno(STDOUT),&quot;w&quot;)) { $io-&gt;print(&quot;Some text\n&quot;); } # setvbuf is not available by default on Perls 5.8.0 and later. use IO::Handle &#39;_IOLBF&#39;; $io-&gt;setvbuf(my $buffer_var, _IOLBF, 1024); undef $io; # automatically closes the file if it&#39;s open autoflush STDOUT 1;</code></pre> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p><code>IO::Handle</code> is the base class for all other IO handle classes. It is not intended that objects of <code>IO::Handle</code> would be created directly, but instead <code>IO::Handle</code> is inherited from by several other classes in the IO hierarchy.</p> <p>If you are reading this documentation, looking for a replacement for the <code>FileHandle</code> package, then I suggest you read the documentation for <code>IO::File</code> too.</p> <h1 id="CONSTRUCTOR">CONSTRUCTOR</h1> <dl> <dt id="new-()"><a id="new"></a>new ()</dt> <dd> <p>Creates a new <code>IO::Handle</code> object.</p> </dd> <dt id="new_from_fd-(-FD,-MODE-)"><a id="new_from_fd"></a><a id="new_from_fd-FD-MODE"></a>new_from_fd ( FD, MODE )</dt> <dd> <p>Creates an <code>IO::Handle</code> like <code>new</code> does. It requires two parameters, which are passed to the method <code>fdopen</code>; if the fdopen fails, the object is destroyed. Otherwise, it is returned to the caller.</p> </dd> </dl> <h1 id="METHODS">METHODS</h1> <p>See <a href="/pod/perlfunc">perlfunc</a> for complete descriptions of each of the following supported <code>IO::Handle</code> methods, which are just front ends for the corresponding built-in functions:</p> <pre><code>$io-&gt;close $io-&gt;eof $io-&gt;fcntl( FUNCTION, SCALAR ) $io-&gt;fileno $io-&gt;format_write( [FORMAT_NAME] ) $io-&gt;getc $io-&gt;ioctl( FUNCTION, SCALAR ) $io-&gt;read ( BUF, LEN, [OFFSET] ) $io-&gt;print ( ARGS ) $io-&gt;printf ( FMT, [ARGS] ) $io-&gt;say ( ARGS ) $io-&gt;stat $io-&gt;sysread ( BUF, LEN, [OFFSET] ) $io-&gt;syswrite ( BUF, [LEN, [OFFSET]] ) $io-&gt;truncate ( LEN )</code></pre> <p>See <a href="/pod/perlvar">perlvar</a> for complete descriptions of each of the following supported <code>IO::Handle</code> methods. All of them return the previous value of the attribute and takes an optional single argument that when given will set the value. If no argument is given the previous value is unchanged (except for $io-&gt;autoflush will actually turn ON autoflush by default).</p> <pre><code>$io-&gt;autoflush ( [BOOL] ) $| $io-&gt;format_page_number( [NUM] ) $% $io-&gt;format_lines_per_page( [NUM] ) $= $io-&gt;format_lines_left( [NUM] ) $- $io-&gt;format_name( [STR] ) $~ $io-&gt;format_top_name( [STR] ) $^ $io-&gt;input_line_number( [NUM]) $.</code></pre> <p>The following methods are not supported on a per-filehandle basis.</p> <pre><code>IO::Handle-&gt;format_line_break_characters( [STR] ) $: IO::Handle-&gt;format_formfeed( [STR]) $^L IO::Handle-&gt;output_field_separator( [STR] ) $, IO::Handle-&gt;output_record_separator( [STR] ) $\ IO::Handle-&gt;input_record_separator( [STR] ) $/</code></pre> <p>Furthermore, for doing normal I/O you might need these:</p> <dl> <dt id="$io-&gt;fdopen-(-FD,-MODE-)"><a id="fdopen"></a><a id="io-fdopen-FD-MODE"></a>$io-&gt;fdopen ( FD, MODE )</dt> <dd> <p><code>fdopen</code> is like an ordinary <code>open</code> except that its first parameter is not a filename but rather a file handle name, an IO::Handle object, or a file descriptor number. (For the documentation of the <code>open</code> method, see <a href="/pod/IO::File">IO::File</a>.)</p> </dd> <dt id="$io-&gt;opened"><a id="opened"></a><a id="io-opened"></a>$io-&gt;opened</dt> <dd> <p>Returns true if the object is currently a valid file descriptor, false otherwise.</p> </dd> <dt id="$io-&gt;getline"><a id="getline"></a><a id="io-getline"></a>$io-&gt;getline</dt> <dd> <p>This works like &lt;$io&gt; described in <a href="/pod/perlop#I%2FO-Operators">&quot;I/O Operators&quot; in perlop</a> except that it&#39;s more readable and can be safely called in a list context but still returns just one line. If used as the conditional within a <code>while</code> or C-style <code>for</code> loop, however, you will need to emulate the functionality of &lt;$io&gt; with <code>defined($_ = $io-&gt;getline)</code>.</p> </dd> <dt id="$io-&gt;getlines"><a id="getlines"></a><a id="io-getlines"></a>$io-&gt;getlines</dt> <dd> <p>This works like &lt;$io&gt; when called in a list context to read all the remaining lines in a file, except that it&#39;s more readable. It will also croak() if accidentally called in a scalar context.</p> </dd> <dt id="$io-&gt;ungetc-(-ORD-)"><a id="ungetc"></a><a id="io-ungetc-ORD"></a>$io-&gt;ungetc ( ORD )</dt> <dd> <p>Pushes a character with the given ordinal value back onto the given handle&#39;s input stream. Only one character of pushback per handle is guaranteed.</p> </dd> <dt id="$io-&gt;write-(-BUF,-LEN-[,-OFFSET-]-)"><a id="write"></a><a id="io-write-BUF-LEN-OFFSET"></a>$io-&gt;write ( BUF, LEN [, OFFSET ] )</dt> <dd> <p>This <code>write</code> is somewhat like <code>write</code> found in C, in that it is the opposite of read. The wrapper for the perl <code>write</code> function is called <code>format_write</code>. However, whilst the C <code>write</code> function returns the number of bytes written, this <code>write</code> function simply returns true if successful (like <code>print</code>). A more C-like <code>write</code> is <code>syswrite</code> (see above).</p> </dd> <dt id="$io-&gt;error"><a id="error"></a><a id="io-error"></a>$io-&gt;error</dt> <dd> <p>Returns a true value if the given handle has experienced any errors since it was opened or since the last call to <code>clearerr</code>, or if the handle is invalid. It only returns false for a valid handle with no outstanding errors.</p> </dd> <dt id="$io-&gt;clearerr"><a id="clearerr"></a><a id="io-clearerr"></a>$io-&gt;clearerr</dt> <dd> <p>Clear the given handle&#39;s error indicator. Returns -1 if the handle is invalid, 0 otherwise.</p> </dd> <dt id="$io-&gt;sync"><a id="sync"></a><a id="io-sync"></a>$io-&gt;sync</dt> <dd> <p><code>sync</code> synchronizes a file&#39;s in-memory state with that on the physical medium. <code>sync</code> does not operate at the perlio api level, but operates on the file descriptor (similar to sysread, sysseek and systell). This means that any data held at the perlio api level will not be synchronized. To synchronize data that is buffered at the perlio api level you must use the flush method. <code>sync</code> is not implemented on all platforms. Returns &quot;0 but true&quot; on success, <code>undef</code> on error, <code>undef</code> for an invalid handle. See <a>fsync(3c)</a>.</p> </dd> <dt id="$io-&gt;flush"><a id="flush"></a><a id="io-flush"></a>$io-&gt;flush</dt> <dd> <p><code>flush</code> causes perl to flush any buffered data at the perlio api level. Any unread data in the buffer will be discarded, and any unwritten data will be written to the underlying file descriptor. Returns &quot;0 but true&quot; on success, <code>undef</code> on error.</p> </dd> <dt id="$io-&gt;printflush-(-ARGS-)"><a id="printflush"></a><a id="io-printflush-ARGS"></a>$io-&gt;printflush ( ARGS )</dt> <dd> <p>Turns on autoflush, print ARGS and then restores the autoflush status of the <code>IO::Handle</code> object. Returns the return value from print.</p> </dd> <dt id="$io-&gt;blocking-(-[-BOOL-]-)"><a id="blocking"></a><a id="io-blocking-BOOL"></a>$io-&gt;blocking ( [ BOOL ] )</dt> <dd> <p>If called with an argument <code>blocking</code> will turn on non-blocking IO if <code>BOOL</code> is false, and turn it off if <code>BOOL</code> is true.</p> <p><code>blocking</code> will return the value of the previous setting, or the current setting if <code>BOOL</code> is not given.</p> <p>If an error occurs <code>blocking</code> will return undef and <code>$!</code> will be set.</p> </dd> <dt id="binmode(-[LAYER]-)"><a id="binmode"></a><a id="binmode-LAYER"></a>binmode( [LAYER] )</dt> <dd> <p><code>binmode</code> sets <code>binmode</code> on the underlying <code>IO</code> object, as documented in <code>perldoc -f binmode</code>.</p> <p><code>binmode</code> accepts one optional parameter, which is the layer to be passed on to the <code>binmode</code> call.</p> </dd> </dl> <p>If the C functions setbuf() and/or setvbuf() are available, then <code>IO::Handle::setbuf</code> and <code>IO::Handle::setvbuf</code> set the buffering policy for an IO::Handle. The calling sequences for the Perl functions are the same as their C counterparts--including the constants <code>_IOFBF</code>, <code>_IOLBF</code>, and <code>_IONBF</code> for setvbuf()--except that the buffer parameter specifies a scalar variable to use as a buffer. You should only change the buffer before any I/O, or immediately after calling flush.</p> <p>WARNING: The IO::Handle::setvbuf() is not available by default on Perls 5.8.0 and later because setvbuf() is rather specific to using the stdio library, while Perl prefers the new perlio subsystem instead.</p> <p>WARNING: A variable used as a buffer by <code>setbuf</code> or <code>setvbuf</code> <b>must not be modified</b> in any way until the IO::Handle is closed or <code>setbuf</code> or <code>setvbuf</code> is called again, or memory corruption may result! Remember that the order of global destruction is undefined, so even if your buffer variable remains in scope until program termination, it may be undefined before the file IO::Handle is closed. Note that you need to import the constants <code>_IOFBF</code>, <code>_IOLBF</code>, and <code>_IONBF</code> explicitly. Like C, setbuf returns nothing. setvbuf returns &quot;0 but true&quot;, on success, <code>undef</code> on failure.</p> <p>Lastly, there is a special method for working under <b>-T</b> and setuid/gid scripts:</p> <dl> <dt id="$io-&gt;untaint"><a id="untaint"></a><a id="io-untaint"></a>$io-&gt;untaint</dt> <dd> <p>Marks the object as taint-clean, and as such data read from it will also be considered taint-clean. Note that this is a very trusting action to take, and appropriate consideration for the data source and potential vulnerability should be kept in mind. Returns 0 on success, -1 if setting the taint-clean flag failed. (eg invalid handle)</p> </dd> </dl> <h1 id="NOTE">NOTE</h1> <p>An <code>IO::Handle</code> object is a reference to a symbol/GLOB reference (see the <a href="/pod/Symbol">Symbol</a> package). Some modules that inherit from <code>IO::Handle</code> may want to keep object related variables in the hash table part of the GLOB. In an attempt to prevent modules trampling on each other I propose the that any such module should prefix its variables with its own name separated by _&#39;s. For example the IO::Socket module keeps a <code>timeout</code> variable in &#39;io_socket_timeout&#39;.</p> <h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1> <p><a href="/pod/perlfunc">perlfunc</a>, <a href="/pod/perlop#I%2FO-Operators">&quot;I/O Operators&quot; in perlop</a>, <a href="/pod/IO::File">IO::File</a></p> <h1 id="BUGS">BUGS</h1> <p>Due to backwards compatibility, all filehandles resemble objects of class <code>IO::Handle</code>, or actually classes derived from that class. They actually aren&#39;t. Which means you can&#39;t derive your own class from <code>IO::Handle</code> and inherit those methods.</p> <h1 id="HISTORY">HISTORY</h1> <p>Derived from FileHandle.pm by Graham Barr &lt;<i>gbarr@pobox.com</i>&gt;</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 IO, 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 IO</code></pre> <p><a href="/pod/CPAN">CPAN shell</a></p> <pre><code>perl -MCPAN -e shell install IO</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