CINXE.COM

Compress::Zlib - Interface to zlib compression library - metacpan.org

<!DOCTYPE html> <html lang="en-US"> <head> <title>Compress::Zlib - Interface to zlib compression library - 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-Compress - MetaCPAN" href="/dist/IO-Compress/releases.rss" /> <link rel="canonical" href="https://metacpan.org/pod/Compress::Zlib" /> <meta name="description" content="Interface to zlib compression library" /> <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/Compress::Zlib" /> <meta property="og:title" content="Compress::Zlib" /> <meta property="og:description" content="Interface to zlib compression library" /> <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-Compress was released."> <span class="relatize">28 Aug 2024 15:36:27 UTC</span> </div> </li> <li> Distribution: <a href="/dist/IO-Compress">IO-Compress</a> </li> <li> Module version: 2.213 </li> <li> <a data-keyboard-shortcut="g s" href="/dist/IO-Compress/source/lib/Compress/Zlib.pm">Source</a> (<a href="/dist/IO-Compress/source/lib/Compress/Zlib.pm?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g b" href="/dist/IO-Compress/source/lib/Compress">Browse</a> (<a href="/dist/IO-Compress/source/lib/Compress?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g c" href="/dist/IO-Compress/changes">Changes</a> </li> <li> <a rel="noopener nofollow" class="nopopup" href="https://github.com/pmqs/IO-Compress">Homepage</a> </li> <li> <a class="nopopup" href="/dist/IO-Compress/contribute">How to Contribute</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/pmqs/IO-Compress">Repository</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/pmqs/IO-Compress/issues">Issues</a> (12) </li> <li> <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=IO-Compress+2.213" title="Matrix">Testers</a> <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO-Compress.html?oncpan=1&amp;distmat=1&amp;version=2.213&amp;grade=2" style="color: #090">621</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO-Compress.html?oncpan=1&amp;distmat=1&amp;version=2.213&amp;grade=3" style="color: #900">1</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO-Compress.html?oncpan=1&amp;distmat=1&amp;version=2.213&amp;grade=4">0</a>)</span> </li> <li> <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/PMQS/IO-Compress-2.213">Kwalitee</a> </li> <li> <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on IO-Compress 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-Compress/activity.svg?res=month" /> <div class="comment">24 month</div> </div> </li> <li class="nav-header">Tools</li> <li> <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/P/PM/PMQS/IO-Compress-2.213.tar.gz"> Download (<span itemprop="fileSize">320.77KB</span>)</a> </li> <li> <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FPMQS%2FIO-Compress-2.213%2Flib%2FCompress%2FZlib.pm"> MetaCPAN Explorer </a> </li> <li> <a href="/dist/IO-Compress/permissions"> Permissions </a> </li> <li> <a href="/dist/IO-Compress/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-Compress"> <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-Compress"> <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/PMQS/IO-Compress-2.213/view/lib/Compress/Zlib.pm" >2.213 (PMQS on 2024-08-28)</option> <option value="/release/PMQS/IO-Compress-2.212/view/lib/Compress/Zlib.pm" >2.212 (PMQS on 2024-04-27)</option> <option value="/release/PMQS/IO-Compress-2.211/view/lib/Compress/Zlib.pm" >2.211 (PMQS on 2024-04-06)</option> <option value="/release/PMQS/IO-Compress-2.208/view/lib/Compress/Zlib.pm" >2.208 (PMQS on 2024-03-31)</option> <option value="/release/PMQS/IO-Compress-2.207/view/lib/Compress/Zlib.pm" >2.207 (PMQS on 2024-02-18)</option> <option value="/release/PMQS/IO-Compress-2.206/view/lib/Compress/Zlib.pm" >2.206 (PMQS on 2023-07-25)</option> <option value="/release/PMQS/IO-Compress-2.205/view/lib/Compress/Zlib.pm" >2.205 (PMQS on 2023-07-16)</option> <option value="/release/PMQS/IO-Compress-2.204/view/lib/Compress/Zlib.pm" >2.204 (PMQS on 2023-02-08)</option> <option value="/release/PMQS/IO-Compress-2.201/view/lib/Compress/Zlib.pm" >2.201 (PMQS on 2022-06-25)</option> <option value="/release/PMQS/IO-Compress-2.106/view/lib/Compress/Zlib.pm" >2.106 (PMQS on 2022-04-12)</option> <option value="/release/PMQS/IO-Compress-2.105/view/lib/Compress/Zlib.pm" >2.105 (PMQS on 2022-04-09)</option> <option value="/release/PMQS/IO-Compress-2.103/view/lib/Compress/Zlib.pm" >2.103 (PMQS on 2022-04-03)</option> <option value="/release/PMQS/IO-Compress-2.102/view/lib/Compress/Zlib.pm" >2.102 (PMQS on 2021-02-28)</option> <option value="/release/PMQS/IO-Compress-2.101/view/lib/Compress/Zlib.pm" >2.101 (PMQS on 2021-02-20)</option> <option value="/release/PMQS/IO-Compress-2.100/view/lib/Compress/Zlib.pm" >2.100 (PMQS on 2021-01-07)</option> <option value="/release/PMQS/IO-Compress-2.096/view/lib/Compress/Zlib.pm" >2.096 (PMQS on 2020-07-31)</option> <option value="/release/PMQS/IO-Compress-2.095/view/lib/Compress/Zlib.pm" >2.095 (PMQS on 2020-07-20)</option> <option value="/release/PMQS/IO-Compress-2.094/view/lib/Compress/Zlib.pm" >2.094 (PMQS on 2020-07-14)</option> <option value="/release/PMQS/IO-Compress-2.093/view/lib/Compress/Zlib.pm" >2.093 (PMQS on 2019-12-07)</option> <option value="/release/PMQS/IO-Compress-2.092/view/lib/Compress/Zlib.pm" >2.092 (PMQS on 2019-12-04)</option> <option value="/release/PMQS/IO-Compress-2.091/view/lib/Compress/Zlib.pm" >2.091 (PMQS on 2019-11-23)</option> <option value="/release/PMQS/IO-Compress-2.090/view/lib/Compress/Zlib.pm" >2.090 (PMQS on 2019-11-09)</option> <option value="/release/PMQS/IO-Compress-2.089/view/lib/Compress/Zlib.pm" >2.089 (PMQS on 2019-11-03)</option> <option value="/release/PMQS/IO-Compress-2.088/view/lib/Compress/Zlib.pm" >2.088 (PMQS on 2019-11-03)</option> <option value="/release/PMQS/IO-Compress-2.087/view/lib/Compress/Zlib.pm" >2.087 (PMQS on 2019-08-10)</option> <option value="/release/PMQS/IO-Compress-2.086/view/lib/Compress/Zlib.pm" >2.086 (PMQS on 2019-03-31)</option> <option value="/release/PMQS/IO-Compress-2.084/view/lib/Compress/Zlib.pm" >2.084 (PMQS on 2019-01-06)</option> <option value="/release/PMQS/IO-Compress-2.083/view/lib/Compress/Zlib.pm" >2.083 (PMQS on 2018-12-30)</option> <option value="/release/PMQS/IO-Compress-2.081/view/lib/Compress/Zlib.pm" >2.081 (PMQS on 2018-04-08)</option> <option value="/release/PMQS/IO-Compress-2.080/view/lib/Compress/Zlib.pm" >2.080 (PMQS on 2018-04-03)</option> <option value="/release/PMQS/IO-Compress-2.074/view/lib/Compress/Zlib.pm" >2.074 (PMQS on 2017-02-19)</option> <option value="/release/PMQS/IO-Compress-2.072/view/lib/Compress/Zlib.pm" >2.072 (PMQS on 2017-02-12)</option> <option value="/release/PMQS/IO-Compress-2.070/view/lib/Compress/Zlib.pm" >2.070 (PMQS on 2016-12-28)</option> <option value="/release/PMQS/IO-Compress-2.069/view/lib/Compress/Zlib.pm" >2.069 (PMQS on 2015-09-26)</option> <option value="/release/PMQS/IO-Compress-2.068/view/lib/Compress/Zlib.pm" >2.068 (PMQS on 2014-12-23)</option> <option value="/release/PMQS/IO-Compress-2.067/view/lib/Compress/Zlib.pm" >2.067 (PMQS on 2014-12-08)</option> <option value="/release/PMQS/IO-Compress-2.066/view/lib/Compress/Zlib.pm" >2.066 (PMQS on 2014-09-21)</option> <option value="/release/PMQS/IO-Compress-2.064/view/lib/Compress/Zlib.pm" >2.064 (PMQS on 2014-02-01)</option> <option value="/release/PMQS/IO-Compress-2.063/view/lib/Compress/Zlib.pm" >2.063 (PMQS on 2013-11-02)</option> <option value="/release/PMQS/IO-Compress-2.062/view/lib/Compress/Zlib.pm" >2.062 (PMQS on 2013-08-12)</option> <option value="/release/PMQS/IO-Compress-2.061/view/lib/Compress/Zlib.pm" >2.061 (PMQS on 2013-05-27)</option> <option value="/release/PMQS/IO-Compress-2.060/view/lib/Compress/Zlib.pm" >2.060 (PMQS on 2013-01-07)</option> <option value="/release/PMQS/IO-Compress-2.059/view/lib/Compress/Zlib.pm" >2.059 (PMQS on 2012-12-15)</option> <option value="/release/PMQS/IO-Compress-2.058/view/lib/Compress/Zlib.pm" >2.058 (PMQS on 2012-11-12)</option> <option value="/release/PMQS/IO-Compress-2.057/view/lib/Compress/Zlib.pm" >2.057 (PMQS on 2012-11-10)</option> <option value="/release/PMQS/IO-Compress-2.055/view/lib/Compress/Zlib.pm" >2.055 (PMQS on 2012-08-05)</option> <option value="/release/PMQS/IO-Compress-2.052/view/lib/Compress/Zlib.pm" >2.052 (PMQS on 2012-04-29)</option> <option value="/release/PMQS/IO-Compress-2.049/view/lib/Compress/Zlib.pm" >2.049 (PMQS on 2012-02-18)</option> <option value="/release/PMQS/IO-Compress-2.048/view/lib/Compress/Zlib.pm" >2.048 (PMQS on 2012-01-29)</option> <option value="/release/PMQS/IO-Compress-2.047/view/lib/Compress/Zlib.pm" >2.047 (PMQS on 2012-01-28)</option> <option value="/release/PMQS/IO-Compress-2.046/view/lib/Compress/Zlib.pm" >2.046 (PMQS on 2011-12-18)</option> <option value="/release/PMQS/IO-Compress-2.045/view/lib/Compress/Zlib.pm" >2.045 (PMQS on 2011-12-04)</option> <option value="/release/PMQS/IO-Compress-2.044/view/lib/Compress/Zlib.pm" >2.044 (PMQS on 2011-12-03)</option> <option value="/release/PMQS/IO-Compress-2.043/view/lib/Compress/Zlib.pm" >2.043 (PMQS on 2011-11-20)</option> <option value="/release/PMQS/IO-Compress-2.042/view/lib/Compress/Zlib.pm" >2.042 (PMQS on 2011-11-17)</option> <option value="/release/PMQS/IO-Compress-2.040/view/lib/Compress/Zlib.pm" >2.040 (PMQS on 2011-10-28)</option> <option value="/release/PMQS/IO-Compress-2.039/view/lib/Compress/Zlib.pm" >2.039 (PMQS on 2011-10-28)</option> <option value="/release/PMQS/IO-Compress-2.037/view/lib/Compress/Zlib.pm" >2.037 (PMQS on 2011-06-22)</option> <option value="/release/PMQS/IO-Compress-2.036/view/lib/Compress/Zlib.pm" >2.036 (PMQS on 2011-06-18)</option> <option value="/release/PMQS/IO-Compress-2.035/view/lib/Compress/Zlib.pm" >2.035 (PMQS on 2011-05-07)</option> <option value="/release/PMQS/IO-Compress-2.034/view/lib/Compress/Zlib.pm" >2.034 (PMQS on 2011-05-02)</option> <option value="/release/PMQS/IO-Compress-2.033/view/lib/Compress/Zlib.pm" >2.033 (PMQS on 2011-01-11)</option> <option value="/release/PMQS/IO-Compress-2.032/view/lib/Compress/Zlib.pm" >2.032 (PMQS on 2011-01-06)</option> <option value="/release/PMQS/IO-Compress-2.030/view/lib/Compress/Zlib.pm" >2.030 (PMQS on 2010-07-24)</option> <option value="/release/PMQS/IO-Compress-2.027/view/lib/Compress/Zlib.pm" >2.027 (PMQS on 2010-04-24)</option> <option value="/release/PMQS/IO-Compress-2.026/view/lib/Compress/Zlib.pm" >2.026 (PMQS on 2010-04-07)</option> <option value="/release/PMQS/IO-Compress-2.025/view/lib/Compress/Zlib.pm" >2.025 (PMQS on 2010-03-28)</option> <option value="/release/PMQS/IO-Compress-2.024/view/lib/Compress/Zlib.pm" >2.024 (PMQS on 2010-01-09)</option> <option value="/release/PMQS/IO-Compress-2.023/view/lib/Compress/Zlib.pm" >2.023 (PMQS on 2009-11-09)</option> <option value="/release/PMQS/IO-Compress-2.022/view/lib/Compress/Zlib.pm" >2.022 (PMQS on 2009-10-09)</option> <option value="/release/PMQS/IO-Compress-2.021/view/lib/Compress/Zlib.pm" >2.021 (PMQS on 2009-08-30)</option> <option value="/release/PMQS/IO-Compress-2.020/view/lib/Compress/Zlib.pm" >2.020 (PMQS on 2009-06-03)</option> <option value="/release/PMQS/IO-Compress-2.019/view/lib/Compress/Zlib.pm" >2.019 (PMQS on 2009-05-04)</option> <option value="/release/PMQS/IO-Compress-2.017/view/lib/Compress/Zlib.pm" >2.017 (PMQS on 2009-04-04)</option> <optgroup label="BackPAN">' <option value="/release/PMQS/IO-Compress-2.104/view/lib/Compress/Zlib.pm" >2.104 (PMQS on 2022-04-09)</option> <option value="/release/PMQS/IO-Compress-2.073/view/lib/Compress/Zlib.pm" >2.073 (PMQS on 2017-02-19)</option> <option value="/release/PMQS/IO-Compress-2.018/view/lib/Compress/Zlib.pm" >2.018 (PMQS on 2009-05-03)</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/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.213/lib/Compress/Zlib.pm" >2.213 (PMQS on 2024-08-28)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.212/lib/Compress/Zlib.pm" >2.212 (PMQS on 2024-04-27)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.211/lib/Compress/Zlib.pm" >2.211 (PMQS on 2024-04-06)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.208/lib/Compress/Zlib.pm" >2.208 (PMQS on 2024-03-31)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.207/lib/Compress/Zlib.pm" >2.207 (PMQS on 2024-02-18)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.206/lib/Compress/Zlib.pm" >2.206 (PMQS on 2023-07-25)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.205/lib/Compress/Zlib.pm" >2.205 (PMQS on 2023-07-16)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.204/lib/Compress/Zlib.pm" >2.204 (PMQS on 2023-02-08)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.201/lib/Compress/Zlib.pm" >2.201 (PMQS on 2022-06-25)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.106/lib/Compress/Zlib.pm" >2.106 (PMQS on 2022-04-12)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.105/lib/Compress/Zlib.pm" >2.105 (PMQS on 2022-04-09)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.103/lib/Compress/Zlib.pm" >2.103 (PMQS on 2022-04-03)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.102/lib/Compress/Zlib.pm" >2.102 (PMQS on 2021-02-28)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.101/lib/Compress/Zlib.pm" >2.101 (PMQS on 2021-02-20)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.100/lib/Compress/Zlib.pm" >2.100 (PMQS on 2021-01-07)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.096/lib/Compress/Zlib.pm" >2.096 (PMQS on 2020-07-31)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.095/lib/Compress/Zlib.pm" >2.095 (PMQS on 2020-07-20)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.094/lib/Compress/Zlib.pm" >2.094 (PMQS on 2020-07-14)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.093/lib/Compress/Zlib.pm" >2.093 (PMQS on 2019-12-07)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.092/lib/Compress/Zlib.pm" >2.092 (PMQS on 2019-12-04)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.091/lib/Compress/Zlib.pm" >2.091 (PMQS on 2019-11-23)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.090/lib/Compress/Zlib.pm" >2.090 (PMQS on 2019-11-09)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.089/lib/Compress/Zlib.pm" >2.089 (PMQS on 2019-11-03)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.088/lib/Compress/Zlib.pm" >2.088 (PMQS on 2019-11-03)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.087/lib/Compress/Zlib.pm" >2.087 (PMQS on 2019-08-10)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.086/lib/Compress/Zlib.pm" >2.086 (PMQS on 2019-03-31)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.084/lib/Compress/Zlib.pm" >2.084 (PMQS on 2019-01-06)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.083/lib/Compress/Zlib.pm" >2.083 (PMQS on 2018-12-30)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.081/lib/Compress/Zlib.pm" >2.081 (PMQS on 2018-04-08)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.080/lib/Compress/Zlib.pm" >2.080 (PMQS on 2018-04-03)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.074/lib/Compress/Zlib.pm" >2.074 (PMQS on 2017-02-19)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.072/lib/Compress/Zlib.pm" >2.072 (PMQS on 2017-02-12)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.070/lib/Compress/Zlib.pm" >2.070 (PMQS on 2016-12-28)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.069/lib/Compress/Zlib.pm" >2.069 (PMQS on 2015-09-26)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.068/lib/Compress/Zlib.pm" >2.068 (PMQS on 2014-12-23)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.067/lib/Compress/Zlib.pm" >2.067 (PMQS on 2014-12-08)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.066/lib/Compress/Zlib.pm" >2.066 (PMQS on 2014-09-21)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.064/lib/Compress/Zlib.pm" >2.064 (PMQS on 2014-02-01)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.063/lib/Compress/Zlib.pm" >2.063 (PMQS on 2013-11-02)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.062/lib/Compress/Zlib.pm" >2.062 (PMQS on 2013-08-12)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.061/lib/Compress/Zlib.pm" >2.061 (PMQS on 2013-05-27)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.060/lib/Compress/Zlib.pm" >2.060 (PMQS on 2013-01-07)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.059/lib/Compress/Zlib.pm" >2.059 (PMQS on 2012-12-15)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.058/lib/Compress/Zlib.pm" >2.058 (PMQS on 2012-11-12)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.057/lib/Compress/Zlib.pm" >2.057 (PMQS on 2012-11-10)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.055/lib/Compress/Zlib.pm" >2.055 (PMQS on 2012-08-05)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.052/lib/Compress/Zlib.pm" >2.052 (PMQS on 2012-04-29)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.049/lib/Compress/Zlib.pm" >2.049 (PMQS on 2012-02-18)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.048/lib/Compress/Zlib.pm" >2.048 (PMQS on 2012-01-29)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.047/lib/Compress/Zlib.pm" >2.047 (PMQS on 2012-01-28)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.046/lib/Compress/Zlib.pm" >2.046 (PMQS on 2011-12-18)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.045/lib/Compress/Zlib.pm" >2.045 (PMQS on 2011-12-04)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.044/lib/Compress/Zlib.pm" >2.044 (PMQS on 2011-12-03)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.043/lib/Compress/Zlib.pm" >2.043 (PMQS on 2011-11-20)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.042/lib/Compress/Zlib.pm" >2.042 (PMQS on 2011-11-17)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.040/lib/Compress/Zlib.pm" >2.040 (PMQS on 2011-10-28)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.039/lib/Compress/Zlib.pm" >2.039 (PMQS on 2011-10-28)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.037/lib/Compress/Zlib.pm" >2.037 (PMQS on 2011-06-22)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.036/lib/Compress/Zlib.pm" >2.036 (PMQS on 2011-06-18)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.035/lib/Compress/Zlib.pm" >2.035 (PMQS on 2011-05-07)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.034/lib/Compress/Zlib.pm" >2.034 (PMQS on 2011-05-02)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.033/lib/Compress/Zlib.pm" >2.033 (PMQS on 2011-01-11)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.032/lib/Compress/Zlib.pm" >2.032 (PMQS on 2011-01-06)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.030/lib/Compress/Zlib.pm" >2.030 (PMQS on 2010-07-24)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.027/lib/Compress/Zlib.pm" >2.027 (PMQS on 2010-04-24)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.026/lib/Compress/Zlib.pm" >2.026 (PMQS on 2010-04-07)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.025/lib/Compress/Zlib.pm" >2.025 (PMQS on 2010-03-28)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.024/lib/Compress/Zlib.pm" >2.024 (PMQS on 2010-01-09)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.023/lib/Compress/Zlib.pm" >2.023 (PMQS on 2009-11-09)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.022/lib/Compress/Zlib.pm" >2.022 (PMQS on 2009-10-09)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.021/lib/Compress/Zlib.pm" >2.021 (PMQS on 2009-08-30)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.020/lib/Compress/Zlib.pm" >2.020 (PMQS on 2009-06-03)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.019/lib/Compress/Zlib.pm" >2.019 (PMQS on 2009-05-04)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.017/lib/Compress/Zlib.pm" >2.017 (PMQS on 2009-04-04)</option> <optgroup label="BackPAN">' <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.104/lib/Compress/Zlib.pm" >2.104 (PMQS on 2022-04-09)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.073/lib/Compress/Zlib.pm" >2.073 (PMQS on 2017-02-19)</option> <option value="/release/PMQS/IO-Compress-2.213/diff/PMQS/IO-Compress-2.018/lib/Compress/Zlib.pm" >2.018 (PMQS on 2009-05-03)</option> </optgroup> </select> </li> <li> <ul class="dependencies"> <li class="nav-header">Dependencies</li> <li><a href="/pod/Compress::Raw::Bzip2" title="Compress::Raw::Bzip2" class="ellipsis">Compress::Raw::Bzip2</a></li> <li><a href="/pod/Compress::Raw::Zlib" title="Compress::Raw::Zlib" class="ellipsis">Compress::Raw::Zlib</a></li> <li><a href="/pod/Encode" title="Encode" class="ellipsis">Encode</a></li> <li><a href="/pod/Scalar::Util" title="Scalar::Util" class="ellipsis">Scalar::Util</a></li> <li><a href="/pod/Time::Local" title="Time::Local" class="ellipsis">Time::Local</a></li> <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li> <li> <hr> </li> <li> <a href="/module/Compress::Zlib/requires">Reverse dependencies</a> </li> <li> <a href="http://deps.cpantesters.org/?module=Compress%3A%3AZlib">CPAN Testers List</a> </li> <li> <a href="https://cpandeps.grinnz.com/?dist=IO-Compress">Dependency graph</a> </li> </ul> </li> <li class="nav-header">Permalinks</li> <li> <a href="/release/PMQS/IO-Compress-2.213/view/lib/Compress/Zlib.pm">This version</a> </li> <li> <a href="/pod/Compress::Zlib">Latest version</a> </li> <li> <div class="plussers"> <div class="nav-header">++ed by:</div> <div> <a class="display-all" href="/author/HAARG"><img src="https://www.gravatar.com/avatar/5037faf9ba40cf736778820fe83fc2ae?d=identicon&amp;s=20" title="HAARG" alt="HAARG"></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/BINGOS"><img src="https://www.gravatar.com/avatar/cb1574e2e83978e99c46190960a2da77?d=identicon&amp;s=20" title="BINGOS" alt="BINGOS"></a> <a class="display-all" href="/author/PAVELSR"><img src="https://www.gravatar.com/avatar/bdd3233525e2a6ca61bbc05752111c15?d=identicon&amp;s=20" title="PAVELSR" alt="PAVELSR"></a> <a class="display-all" href="/author/KEEDI"><img src="https://www.gravatar.com/avatar/95f905a7a4ccc573c711e9d264c0fde8?d=identicon&amp;s=20" title="KEEDI" alt="KEEDI"></a> </div> <!-- Display counts of plussers--> <div> <a href="/dist/IO-Compress/plussers">7 PAUSE users</a> </div> <div> 10 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/PMQS" class="author-name">Paul Marquess</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/PMQS/IO-Compress-2.213/view/lib/Compress/Zlib.pm" >2.213 (PMQS on 2024-08-28)</option> <option value="/release/PMQS/IO-Compress-2.212/view/lib/Compress/Zlib.pm" >2.212 (PMQS on 2024-04-27)</option> <option value="/release/PMQS/IO-Compress-2.211/view/lib/Compress/Zlib.pm" >2.211 (PMQS on 2024-04-06)</option> <option value="/release/PMQS/IO-Compress-2.208/view/lib/Compress/Zlib.pm" >2.208 (PMQS on 2024-03-31)</option> <option value="/release/PMQS/IO-Compress-2.207/view/lib/Compress/Zlib.pm" >2.207 (PMQS on 2024-02-18)</option> <option value="/release/PMQS/IO-Compress-2.206/view/lib/Compress/Zlib.pm" >2.206 (PMQS on 2023-07-25)</option> <option value="/release/PMQS/IO-Compress-2.205/view/lib/Compress/Zlib.pm" >2.205 (PMQS on 2023-07-16)</option> <option value="/release/PMQS/IO-Compress-2.204/view/lib/Compress/Zlib.pm" >2.204 (PMQS on 2023-02-08)</option> <option value="/release/PMQS/IO-Compress-2.201/view/lib/Compress/Zlib.pm" >2.201 (PMQS on 2022-06-25)</option> <option value="/release/PMQS/IO-Compress-2.106/view/lib/Compress/Zlib.pm" >2.106 (PMQS on 2022-04-12)</option> <option value="/release/PMQS/IO-Compress-2.105/view/lib/Compress/Zlib.pm" >2.105 (PMQS on 2022-04-09)</option> <option value="/release/PMQS/IO-Compress-2.103/view/lib/Compress/Zlib.pm" >2.103 (PMQS on 2022-04-03)</option> <option value="/release/PMQS/IO-Compress-2.102/view/lib/Compress/Zlib.pm" >2.102 (PMQS on 2021-02-28)</option> <option value="/release/PMQS/IO-Compress-2.101/view/lib/Compress/Zlib.pm" >2.101 (PMQS on 2021-02-20)</option> <option value="/release/PMQS/IO-Compress-2.100/view/lib/Compress/Zlib.pm" >2.100 (PMQS on 2021-01-07)</option> <option value="/release/PMQS/IO-Compress-2.096/view/lib/Compress/Zlib.pm" >2.096 (PMQS on 2020-07-31)</option> <option value="/release/PMQS/IO-Compress-2.095/view/lib/Compress/Zlib.pm" >2.095 (PMQS on 2020-07-20)</option> <option value="/release/PMQS/IO-Compress-2.094/view/lib/Compress/Zlib.pm" >2.094 (PMQS on 2020-07-14)</option> <option value="/release/PMQS/IO-Compress-2.093/view/lib/Compress/Zlib.pm" >2.093 (PMQS on 2019-12-07)</option> <option value="/release/PMQS/IO-Compress-2.092/view/lib/Compress/Zlib.pm" >2.092 (PMQS on 2019-12-04)</option> <option value="/release/PMQS/IO-Compress-2.091/view/lib/Compress/Zlib.pm" >2.091 (PMQS on 2019-11-23)</option> <option value="/release/PMQS/IO-Compress-2.090/view/lib/Compress/Zlib.pm" >2.090 (PMQS on 2019-11-09)</option> <option value="/release/PMQS/IO-Compress-2.089/view/lib/Compress/Zlib.pm" >2.089 (PMQS on 2019-11-03)</option> <option value="/release/PMQS/IO-Compress-2.088/view/lib/Compress/Zlib.pm" >2.088 (PMQS on 2019-11-03)</option> <option value="/release/PMQS/IO-Compress-2.087/view/lib/Compress/Zlib.pm" >2.087 (PMQS on 2019-08-10)</option> <option value="/release/PMQS/IO-Compress-2.086/view/lib/Compress/Zlib.pm" >2.086 (PMQS on 2019-03-31)</option> <option value="/release/PMQS/IO-Compress-2.084/view/lib/Compress/Zlib.pm" >2.084 (PMQS on 2019-01-06)</option> <option value="/release/PMQS/IO-Compress-2.083/view/lib/Compress/Zlib.pm" >2.083 (PMQS on 2018-12-30)</option> <option value="/release/PMQS/IO-Compress-2.081/view/lib/Compress/Zlib.pm" >2.081 (PMQS on 2018-04-08)</option> <option value="/release/PMQS/IO-Compress-2.080/view/lib/Compress/Zlib.pm" >2.080 (PMQS on 2018-04-03)</option> <option value="/release/PMQS/IO-Compress-2.074/view/lib/Compress/Zlib.pm" >2.074 (PMQS on 2017-02-19)</option> <option value="/release/PMQS/IO-Compress-2.072/view/lib/Compress/Zlib.pm" >2.072 (PMQS on 2017-02-12)</option> <option value="/release/PMQS/IO-Compress-2.070/view/lib/Compress/Zlib.pm" >2.070 (PMQS on 2016-12-28)</option> <option value="/release/PMQS/IO-Compress-2.069/view/lib/Compress/Zlib.pm" >2.069 (PMQS on 2015-09-26)</option> <option value="/release/PMQS/IO-Compress-2.068/view/lib/Compress/Zlib.pm" >2.068 (PMQS on 2014-12-23)</option> <option value="/release/PMQS/IO-Compress-2.067/view/lib/Compress/Zlib.pm" >2.067 (PMQS on 2014-12-08)</option> <option value="/release/PMQS/IO-Compress-2.066/view/lib/Compress/Zlib.pm" >2.066 (PMQS on 2014-09-21)</option> <option value="/release/PMQS/IO-Compress-2.064/view/lib/Compress/Zlib.pm" >2.064 (PMQS on 2014-02-01)</option> <option value="/release/PMQS/IO-Compress-2.063/view/lib/Compress/Zlib.pm" >2.063 (PMQS on 2013-11-02)</option> <option value="/release/PMQS/IO-Compress-2.062/view/lib/Compress/Zlib.pm" >2.062 (PMQS on 2013-08-12)</option> <option value="/release/PMQS/IO-Compress-2.061/view/lib/Compress/Zlib.pm" >2.061 (PMQS on 2013-05-27)</option> <option value="/release/PMQS/IO-Compress-2.060/view/lib/Compress/Zlib.pm" >2.060 (PMQS on 2013-01-07)</option> <option value="/release/PMQS/IO-Compress-2.059/view/lib/Compress/Zlib.pm" >2.059 (PMQS on 2012-12-15)</option> <option value="/release/PMQS/IO-Compress-2.058/view/lib/Compress/Zlib.pm" >2.058 (PMQS on 2012-11-12)</option> <option value="/release/PMQS/IO-Compress-2.057/view/lib/Compress/Zlib.pm" >2.057 (PMQS on 2012-11-10)</option> <option value="/release/PMQS/IO-Compress-2.055/view/lib/Compress/Zlib.pm" >2.055 (PMQS on 2012-08-05)</option> <option value="/release/PMQS/IO-Compress-2.052/view/lib/Compress/Zlib.pm" >2.052 (PMQS on 2012-04-29)</option> <option value="/release/PMQS/IO-Compress-2.049/view/lib/Compress/Zlib.pm" >2.049 (PMQS on 2012-02-18)</option> <option value="/release/PMQS/IO-Compress-2.048/view/lib/Compress/Zlib.pm" >2.048 (PMQS on 2012-01-29)</option> <option value="/release/PMQS/IO-Compress-2.047/view/lib/Compress/Zlib.pm" >2.047 (PMQS on 2012-01-28)</option> <option value="/release/PMQS/IO-Compress-2.046/view/lib/Compress/Zlib.pm" >2.046 (PMQS on 2011-12-18)</option> <option value="/release/PMQS/IO-Compress-2.045/view/lib/Compress/Zlib.pm" >2.045 (PMQS on 2011-12-04)</option> <option value="/release/PMQS/IO-Compress-2.044/view/lib/Compress/Zlib.pm" >2.044 (PMQS on 2011-12-03)</option> <option value="/release/PMQS/IO-Compress-2.043/view/lib/Compress/Zlib.pm" >2.043 (PMQS on 2011-11-20)</option> <option value="/release/PMQS/IO-Compress-2.042/view/lib/Compress/Zlib.pm" >2.042 (PMQS on 2011-11-17)</option> <option value="/release/PMQS/IO-Compress-2.040/view/lib/Compress/Zlib.pm" >2.040 (PMQS on 2011-10-28)</option> <option value="/release/PMQS/IO-Compress-2.039/view/lib/Compress/Zlib.pm" >2.039 (PMQS on 2011-10-28)</option> <option value="/release/PMQS/IO-Compress-2.037/view/lib/Compress/Zlib.pm" >2.037 (PMQS on 2011-06-22)</option> <option value="/release/PMQS/IO-Compress-2.036/view/lib/Compress/Zlib.pm" >2.036 (PMQS on 2011-06-18)</option> <option value="/release/PMQS/IO-Compress-2.035/view/lib/Compress/Zlib.pm" >2.035 (PMQS on 2011-05-07)</option> <option value="/release/PMQS/IO-Compress-2.034/view/lib/Compress/Zlib.pm" >2.034 (PMQS on 2011-05-02)</option> <option value="/release/PMQS/IO-Compress-2.033/view/lib/Compress/Zlib.pm" >2.033 (PMQS on 2011-01-11)</option> <option value="/release/PMQS/IO-Compress-2.032/view/lib/Compress/Zlib.pm" >2.032 (PMQS on 2011-01-06)</option> <option value="/release/PMQS/IO-Compress-2.030/view/lib/Compress/Zlib.pm" >2.030 (PMQS on 2010-07-24)</option> <option value="/release/PMQS/IO-Compress-2.027/view/lib/Compress/Zlib.pm" >2.027 (PMQS on 2010-04-24)</option> <option value="/release/PMQS/IO-Compress-2.026/view/lib/Compress/Zlib.pm" >2.026 (PMQS on 2010-04-07)</option> <option value="/release/PMQS/IO-Compress-2.025/view/lib/Compress/Zlib.pm" >2.025 (PMQS on 2010-03-28)</option> <option value="/release/PMQS/IO-Compress-2.024/view/lib/Compress/Zlib.pm" >2.024 (PMQS on 2010-01-09)</option> <option value="/release/PMQS/IO-Compress-2.023/view/lib/Compress/Zlib.pm" >2.023 (PMQS on 2009-11-09)</option> <option value="/release/PMQS/IO-Compress-2.022/view/lib/Compress/Zlib.pm" >2.022 (PMQS on 2009-10-09)</option> <option value="/release/PMQS/IO-Compress-2.021/view/lib/Compress/Zlib.pm" >2.021 (PMQS on 2009-08-30)</option> <option value="/release/PMQS/IO-Compress-2.020/view/lib/Compress/Zlib.pm" >2.020 (PMQS on 2009-06-03)</option> <option value="/release/PMQS/IO-Compress-2.019/view/lib/Compress/Zlib.pm" >2.019 (PMQS on 2009-05-04)</option> <option value="/release/PMQS/IO-Compress-2.017/view/lib/Compress/Zlib.pm" >2.017 (PMQS on 2009-04-04)</option> <optgroup label="BackPAN">' <option value="/release/PMQS/IO-Compress-2.104/view/lib/Compress/Zlib.pm" >2.104 (PMQS on 2022-04-09)</option> <option value="/release/PMQS/IO-Compress-2.073/view/lib/Compress/Zlib.pm" >2.073 (PMQS on 2017-02-19)</option> <option value="/release/PMQS/IO-Compress-2.018/view/lib/Compress/Zlib.pm" >2.018 (PMQS on 2009-05-03)</option> </optgroup> </select> <a data-keyboard-shortcut="g d" class="release-name" href="/dist/IO-Compress">IO-Compress-2.213</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; • 271 direct dependents &#10; • 10109 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-Compress-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-Compress-2.213"> <input type="hidden" name="author" value="PMQS"> <input type="hidden" name="distribution" value="IO-Compress"> <button type="submit" class="favorite highlight"><span>17</span> ++</button> </form> </div> <div class="show-logged-out"> <button class="fav-not-logged-in favorite highlight"><span>17</span> ++</button> </div> / <span>Compress::Zlib</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> <ul> <li><a href="#Notes-for-users-of-Compress%3A%3AZlib-version-1">Notes for users of Compress::Zlib version 1</a></li> </ul> </li> <li><a href="#GZIP-INTERFACE">GZIP INTERFACE</a> <ul> <li><a href="#Examples">Examples</a></li> <li><a href="#Compress%3A%3AZlib%3A%3AmemGzip">Compress::Zlib::memGzip</a></li> <li><a href="#Compress%3A%3AZlib%3A%3AmemGunzip">Compress::Zlib::memGunzip</a></li> </ul> </li> <li><a href="#COMPRESS%2FUNCOMPRESS">COMPRESS/UNCOMPRESS</a></li> <li><a href="#Deflate-Interface">Deflate Interface</a> <ul> <li><a href="#(%24d%2C-%24status)-%3D-deflateInit(-%5BOPT%5D-)">($d, $status) = deflateInit( [OPT] )</a></li> <li><a href="#(%24out%2C-%24status)-%3D-%24d-%3Edeflate(%24buffer)">($out, $status) = $d-&gt;deflate($buffer)</a></li> <li><a href="#(%24out%2C-%24status)-%3D-%24d-%3Eflush()-%3Dhead2-(%24out%2C-%24status)-%3D-%24d-%3Eflush(%24flush_type)">($out, $status) = $d-&gt;flush() =head2 ($out, $status) = $d-&gt;flush($flush_type)</a></li> <li><a href="#%24status-%3D-%24d-%3EdeflateParams(%5BOPT%5D)">$status = $d-&gt;deflateParams([OPT])</a></li> <li><a href="#%24d-%3Edict_adler()">$d-&gt;dict_adler()</a></li> <li><a href="#%24d-%3Emsg()">$d-&gt;msg()</a></li> <li><a href="#%24d-%3Etotal_in()">$d-&gt;total_in()</a></li> <li><a href="#%24d-%3Etotal_out()">$d-&gt;total_out()</a></li> <li><a href="#Example">Example</a></li> </ul> </li> <li><a href="#Inflate-Interface">Inflate Interface</a> <ul> <li><a href="#(%24i%2C-%24status)-%3D-inflateInit()">($i, $status) = inflateInit()</a></li> <li><a href="#(%24out%2C-%24status)-%3D-%24i-%3Einflate(%24buffer)">($out, $status) = $i-&gt;inflate($buffer)</a></li> <li><a href="#%24status-%3D-%24i-%3EinflateSync(%24buffer)">$status = $i-&gt;inflateSync($buffer)</a></li> <li><a href="#%24i-%3Edict_adler()">$i-&gt;dict_adler()</a></li> <li><a href="#%24i-%3Emsg()">$i-&gt;msg()</a></li> <li><a href="#%24i-%3Etotal_in()">$i-&gt;total_in()</a></li> <li><a href="#%24i-%3Etotal_out()">$i-&gt;total_out()</a></li> <li><a href="#Example1">Example</a></li> </ul> </li> <li><a href="#CHECKSUM-FUNCTIONS">CHECKSUM FUNCTIONS</a></li> <li><a href="#Misc">Misc</a> <ul> <li><a href="#my-%24version-%3D-Compress%3A%3AZlib%3A%3Azlib_version()%3B">my $version = Compress::Zlib::zlib_version();</a></li> </ul> </li> <li><a href="#CONSTANTS">CONSTANTS</a></li> <li><a href="#SUPPORT">SUPPORT</a></li> <li><a href="#SEE-ALSO">SEE ALSO</a></li> <li><a href="#AUTHOR">AUTHOR</a></li> <li><a href="#MODIFICATION-HISTORY">MODIFICATION HISTORY</a></li> <li><a href="#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li> </ul></nav> <div class="pod anchors"> <h1 id="NAME">NAME</h1> <p>Compress::Zlib - Interface to zlib compression library</p> <h1 id="SYNOPSIS">SYNOPSIS</h1> <pre><code>use Compress::Zlib ; ($d, $status) = deflateInit( [OPT] ) ; $status = $d-&gt;deflate($input, $output) ; $status = $d-&gt;flush([$flush_type]) ; $d-&gt;deflateParams(OPTS) ; $d-&gt;deflateTune(OPTS) ; $d-&gt;dict_adler() ; $d-&gt;crc32() ; $d-&gt;adler32() ; $d-&gt;total_in() ; $d-&gt;total_out() ; $d-&gt;msg() ; $d-&gt;get_Strategy(); $d-&gt;get_Level(); $d-&gt;get_BufSize(); ($i, $status) = inflateInit( [OPT] ) ; $status = $i-&gt;inflate($input, $output [, $eof]) ; $status = $i-&gt;inflateSync($input) ; $i-&gt;dict_adler() ; $d-&gt;crc32() ; $d-&gt;adler32() ; $i-&gt;total_in() ; $i-&gt;total_out() ; $i-&gt;msg() ; $d-&gt;get_BufSize(); $dest = compress($source) ; $dest = uncompress($source) ; $gz = gzopen($filename or filehandle, $mode) ; $bytesread = $gz-&gt;gzread($buffer [,$size]) ; $bytesread = $gz-&gt;gzreadline($line) ; $byteswritten = $gz-&gt;gzwrite($buffer) ; $status = $gz-&gt;gzflush($flush) ; $offset = $gz-&gt;gztell() ; $status = $gz-&gt;gzseek($offset, $whence) ; $status = $gz-&gt;gzclose() ; $status = $gz-&gt;gzeof() ; $status = $gz-&gt;gzsetparams($level, $strategy) ; $errstring = $gz-&gt;gzerror() ; $gzerrno $dest = Compress::Zlib::memGzip($buffer) ; $dest = Compress::Zlib::memGunzip($buffer) ; $crc = adler32($buffer [,$crc]) ; $crc = crc32($buffer [,$crc]) ; $crc = crc32_combine($crc1, $crc2, $len2); $adler = adler32_combine($adler1, $adler2, $len2); my $version = Compress::Raw::Zlib::zlib_version();</code></pre> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p>The <i>Compress::Zlib</i> module provides a Perl interface to the <i>zlib</i> compression library (see <a href="#AUTHOR">&quot;AUTHOR&quot;</a> for details about where to get <i>zlib</i>).</p> <p>The <code>Compress::Zlib</code> module can be split into two general areas of functionality, namely a simple read/write interface to <i>gzip</i> files and a low-level in-memory compression/decompression interface.</p> <p>Each of these areas will be discussed in the following sections.</p> <h2 id="Notes-for-users-of-Compress::Zlib-version-1"><a id="Notes"></a>Notes for users of Compress::Zlib version 1</h2> <p>The main change in <code>Compress::Zlib</code> version 2.x is that it does not now interface directly to the zlib library. Instead it uses the <code>IO::Compress::Gzip</code> and <code>IO::Uncompress::Gunzip</code> modules for reading/writing gzip files, and the <code>Compress::Raw::Zlib</code> module for some low-level zlib access.</p> <p>The interface provided by version 2 of this module should be 100% backward compatible with version 1. If you find a difference in the expected behaviour please contact the author (See <a href="#AUTHOR">&quot;AUTHOR&quot;</a>). See <a href="#GZIP-INTERFACE">&quot;GZIP INTERFACE&quot;</a></p> <p>With the creation of the <code>IO::Compress</code> and <code>IO::Uncompress</code> modules no new features are planned for <code>Compress::Zlib</code> - the new modules do everything that <code>Compress::Zlib</code> does and then some. Development on <code>Compress::Zlib</code> will be limited to bug fixes only.</p> <p>If you are writing new code, your first port of call should be one of the new <code>IO::Compress</code> or <code>IO::Uncompress</code> modules.</p> <h1 id="GZIP-INTERFACE"><a id="GZIP"></a>GZIP INTERFACE</h1> <p>A number of functions are supplied in <i>zlib</i> for reading and writing <i>gzip</i> files that conform to RFC 1952. This module provides an interface to most of them.</p> <p>If you have previously used <code>Compress::Zlib</code> 1.x, the following enhancements/changes have been made to the <code>gzopen</code> interface:</p> <ol> <li><p>If you want to open either STDIN or STDOUT with <code>gzopen</code>, you can now optionally use the special filename &quot;<code>-</code>&quot; as a synonym for <code>\*STDIN</code> and <code>\*STDOUT</code>.</p> </li> <li><p>In <code>Compress::Zlib</code> version 1.x, <code>gzopen</code> used the zlib library to open the underlying file. This made things especially tricky when a Perl filehandle was passed to <code>gzopen</code>. Behind the scenes the numeric C file descriptor had to be extracted from the Perl filehandle and this passed to the zlib library.</p> <p>Apart from being non-portable to some operating systems, this made it difficult to use <code>gzopen</code> in situations where you wanted to extract/create a gzip data stream that is embedded in a larger file, without having to resort to opening and closing the file multiple times.</p> <p>It also made it impossible to pass a perl filehandle that wasn&#39;t associated with a real filesystem file, like, say, an <code>IO::String</code>.</p> <p>In <code>Compress::Zlib</code> version 2.x, the <code>gzopen</code> interface has been completely rewritten to use the <a href="/pod/IO::Compress::Gzip">IO::Compress::Gzip</a> for writing gzip files and <a href="/pod/IO::Uncompress::Gunzip">IO::Uncompress::Gunzip</a> for reading gzip files. None of the limitations mentioned above apply.</p> </li> <li><p>Addition of <code>gzseek</code> to provide a restricted <code>seek</code> interface.</p> </li> <li><p>Added <code>gztell</code>.</p> </li> </ol> <p>A more complete and flexible interface for reading/writing gzip files/buffers is included with the module <code>IO-Compress-Zlib</code>. See <a href="/pod/IO::Compress::Gzip">IO::Compress::Gzip</a> and <a href="/pod/IO::Uncompress::Gunzip">IO::Uncompress::Gunzip</a> for more details.</p> <dl> <dt id="$gz-=-gzopen($filename,-$mode)"><a id="gz-gzopen-filename-mode"></a><b>$gz = gzopen($filename, $mode)</b></dt> <dd> </dd> <dt id="$gz-=-gzopen($filehandle,-$mode)"><a id="gz-gzopen-filehandle-mode"></a><b>$gz = gzopen($filehandle, $mode)</b></dt> <dd> <p>This function opens either the <i>gzip</i> file <code>$filename</code> for reading or writing or attaches to the opened filehandle, <code>$filehandle</code>. It returns an object on success and <code>undef</code> on failure.</p> <p>When writing a gzip file this interface will <i>always</i> create the smallest possible gzip header (exactly 10 bytes). If you want greater control over what gets stored in the gzip header (like the original filename or a comment) use <a href="/pod/IO::Compress::Gzip">IO::Compress::Gzip</a> instead. Similarly if you want to read the contents of the gzip header use <a href="/pod/IO::Uncompress::Gunzip">IO::Uncompress::Gunzip</a>.</p> <p>The second parameter, <code>$mode</code>, is used to specify whether the file is opened for reading or writing and to optionally specify a compression level and compression strategy when writing. The format of the <code>$mode</code> parameter is similar to the mode parameter to the &#39;C&#39; function <code>fopen</code>, so &quot;rb&quot; is used to open for reading, &quot;wb&quot; for writing and &quot;ab&quot; for appending (writing at the end of the file).</p> <p>To specify a compression level when writing, append a digit between 0 and 9 to the mode string -- 0 means no compression and 9 means maximum compression. If no compression level is specified Z_DEFAULT_COMPRESSION is used.</p> <p>To specify the compression strategy when writing, append &#39;f&#39; for filtered data, &#39;h&#39; for Huffman only compression, or &#39;R&#39; for run-length encoding. If no strategy is specified Z_DEFAULT_STRATEGY is used.</p> <p>So, for example, &quot;wb9&quot; means open for writing with the maximum compression using the default strategy and &quot;wb4R&quot; means open for writing with compression level 4 and run-length encoding.</p> <p>Refer to the <i>zlib</i> documentation for the exact format of the <code>$mode</code> parameter.</p> </dd> <dt id="$bytesread-=-$gz-&gt;gzread($buffer-[,-$size])-;"><a id="bytesread-gz-gzread-buffer-size"></a><b>$bytesread = $gz-&gt;gzread($buffer [, $size]) ;</b></dt> <dd> <p>Reads <code>$size</code> bytes from the compressed file into <code>$buffer</code>. If <code>$size</code> is not specified, it will default to 4096. If the scalar <code>$buffer</code> is not large enough, it will be extended automatically.</p> <p>Returns the number of bytes actually read. On EOF it returns 0 and in the case of an error, -1.</p> </dd> <dt id="$bytesread-=-$gz-&gt;gzreadline($line)-;"><a id="bytesread-gz-gzreadline-line"></a><b>$bytesread = $gz-&gt;gzreadline($line) ;</b></dt> <dd> <p>Reads the next line from the compressed file into <code>$line</code>.</p> <p>Returns the number of bytes actually read. On EOF it returns 0 and in the case of an error, -1.</p> <p>It is legal to intermix calls to <code>gzread</code> and <code>gzreadline</code>.</p> <p>To maintain backward compatibility with version 1.x of this module <code>gzreadline</code> ignores the <code>$/</code> variable - it <i>always</i> uses the string <code>&quot;\n&quot;</code> as the line delimiter.</p> <p>If you want to read a gzip file a line at a time and have it respect the <code>$/</code> variable (or <code>$INPUT_RECORD_SEPARATOR</code>, or <code>$RS</code> when <code>English</code> is in use) see <a href="/pod/IO::Uncompress::Gunzip">IO::Uncompress::Gunzip</a>.</p> </dd> <dt id="$byteswritten-=-$gz-&gt;gzwrite($buffer)-;"><a id="byteswritten-gz-gzwrite-buffer"></a><b>$byteswritten = $gz-&gt;gzwrite($buffer) ;</b></dt> <dd> <p>Writes the contents of <code>$buffer</code> to the compressed file. Returns the number of bytes actually written, or 0 on error.</p> </dd> <dt id="$status-=-$gz-&gt;gzflush($flush_type)-;"><a id="status-gz-gzflush-flush_type"></a><b>$status = $gz-&gt;gzflush($flush_type) ;</b></dt> <dd> <p>Flushes all pending output into the compressed file.</p> <p>This method takes an optional parameter, <code>$flush_type</code>, that controls how the flushing will be carried out. By default the <code>$flush_type</code> used is <code>Z_FINISH</code>. Other valid values for <code>$flush_type</code> are <code>Z_NO_FLUSH</code>, <code>Z_SYNC_FLUSH</code>, <code>Z_FULL_FLUSH</code> and <code>Z_BLOCK</code>. It is strongly recommended that you only set the <code>flush_type</code> parameter if you fully understand the implications of what it does - overuse of <code>flush</code> can seriously degrade the level of compression achieved. See the <code>zlib</code> documentation for details.</p> <p>Returns 0 on success.</p> </dd> <dt id="$offset-=-$gz-&gt;gztell()-;"><a id="offset-gz-gztell"></a><b>$offset = $gz-&gt;gztell() ;</b></dt> <dd> <p>Returns the uncompressed file offset.</p> </dd> <dt id="$status-=-$gz-&gt;gzseek($offset,-$whence)-;"><a id="status-gz-gzseek-offset-whence"></a><b>$status = $gz-&gt;gzseek($offset, $whence) ;</b></dt> <dd> <p>Provides a sub-set of the <code>seek</code> functionality, with the restriction that it is only legal to seek forward in the compressed file. It is a fatal error to attempt to seek backward.</p> <p>When opened for writing, empty parts of the file will have NULL (0x00) bytes written to them.</p> <p>The <code>$whence</code> parameter should be one of SEEK_SET, SEEK_CUR or SEEK_END.</p> <p>Returns 1 on success, 0 on failure.</p> </dd> <dt id="$gz-&gt;gzclose"><a id="gzclose"></a><a id="gz-gzclose"></a><b>$gz-&gt;gzclose</b></dt> <dd> <p>Closes the compressed file. Any pending data is flushed to the file before it is closed.</p> <p>Returns 0 on success.</p> </dd> <dt id="$gz-&gt;gzsetparams($level,-$strategy"><a id="gzsetparams"></a><a id="gz-gzsetparams-level-strategy"></a><b>$gz-&gt;gzsetparams($level, $strategy</b></dt> <dd> <p>Change settings for the deflate stream <code>$gz</code>.</p> <p>The list of the valid options is shown below. Options not specified will remain unchanged.</p> <p>Note: This method is only available if you are running zlib 1.0.6 or better.</p> <dl> <dt id="$level"><a id="level"></a><b>$level</b></dt> <dd> <p>Defines the compression level. Valid values are 0 through 9, <code>Z_NO_COMPRESSION</code>, <code>Z_BEST_SPEED</code>, <code>Z_BEST_COMPRESSION</code>, and <code>Z_DEFAULT_COMPRESSION</code>.</p> </dd> <dt id="$strategy"><a id="strategy"></a><b>$strategy</b></dt> <dd> <p>Defines the strategy used to tune the compression. The valid values are <code>Z_DEFAULT_STRATEGY</code>, <code>Z_FILTERED</code> and <code>Z_HUFFMAN_ONLY</code>.</p> </dd> </dl> </dd> <dt id="$gz-&gt;gzerror"><a id="gzerror"></a><a id="gz-gzerror"></a><b>$gz-&gt;gzerror</b></dt> <dd> <p>Returns the <i>zlib</i> error message or number for the last operation associated with <code>$gz</code>. The return value will be the <i>zlib</i> error number when used in a numeric context and the <i>zlib</i> error message when used in a string context. The <i>zlib</i> error number constants, shown below, are available for use.</p> <pre><code>Z_OK Z_STREAM_END Z_ERRNO Z_STREAM_ERROR Z_DATA_ERROR Z_MEM_ERROR Z_BUF_ERROR</code></pre> </dd> <dt id="$gzerrno"><a id="gzerrno"></a><b>$gzerrno</b></dt> <dd> <p>The <code>$gzerrno</code> scalar holds the error code associated with the most recent <i>gzip</i> routine. Note that unlike <code>gzerror()</code>, the error is <i>not</i> associated with a particular file.</p> <p>As with <code>gzerror()</code> it returns an error number in numeric context and an error message in string context. Unlike <code>gzerror()</code> though, the error message will correspond to the <i>zlib</i> message when the error is associated with <i>zlib</i> itself, or the UNIX error message when it is not (i.e. <i>zlib</i> returned <code>Z_ERRORNO</code>).</p> <p>As there is an overlap between the error numbers used by <i>zlib</i> and UNIX, <code>$gzerrno</code> should only be used to check for the presence of <i>an</i> error in numeric context. Use <code>gzerror()</code> to check for specific <i>zlib</i> errors. The <i>gzcat</i> example below shows how the variable can be used safely.</p> </dd> </dl> <h2 id="Examples">Examples</h2> <p>Here is an example script which uses the interface. It implements a <i>gzcat</i> function.</p> <pre><code>use strict ; use warnings ; use Compress::Zlib ; # use stdin if no files supplied @ARGV = &#39;-&#39; unless @ARGV ; foreach my $file (@ARGV) { my $buffer ; my $gz = gzopen($file, &quot;rb&quot;) or die &quot;Cannot open $file: $gzerrno\n&quot; ; print $buffer while $gz-&gt;gzread($buffer) &gt; 0 ; die &quot;Error reading from $file: $gzerrno&quot; . ($gzerrno+0) . &quot;\n&quot; if $gzerrno != Z_STREAM_END ; $gz-&gt;gzclose() ; }</code></pre> <p>Below is a script which makes use of <code>gzreadline</code>. It implements a very simple <i>grep</i> like script.</p> <pre><code>use strict ; use warnings ; use Compress::Zlib ; die &quot;Usage: gzgrep pattern [file...]\n&quot; unless @ARGV &gt;= 1; my $pattern = shift ; # use stdin if no files supplied @ARGV = &#39;-&#39; unless @ARGV ; foreach my $file (@ARGV) { my $gz = gzopen($file, &quot;rb&quot;) or die &quot;Cannot open $file: $gzerrno\n&quot; ; while ($gz-&gt;gzreadline($_) &gt; 0) { print if /$pattern/ ; } die &quot;Error reading from $file: $gzerrno\n&quot; if $gzerrno != Z_STREAM_END ; $gz-&gt;gzclose() ; }</code></pre> <p>This script, <i>gzstream</i>, does the opposite of the <i>gzcat</i> script above. It reads from standard input and writes a gzip data stream to standard output.</p> <pre><code>use strict ; use warnings ; use Compress::Zlib ; binmode STDOUT; # gzopen only sets it on the fd my $gz = gzopen(\*STDOUT, &quot;wb&quot;) or die &quot;Cannot open stdout: $gzerrno\n&quot; ; while (&lt;&gt;) { $gz-&gt;gzwrite($_) or die &quot;error writing: $gzerrno\n&quot; ; } $gz-&gt;gzclose ;</code></pre> <h2 id="Compress::Zlib::memGzip"><a id="Compress"></a>Compress::Zlib::memGzip</h2> <p>This function is used to create an in-memory gzip file with the minimum possible gzip header (exactly 10 bytes).</p> <pre><code>$dest = Compress::Zlib::memGzip($buffer) or die &quot;Cannot compress: $gzerrno\n&quot;;</code></pre> <p>If successful, it returns the in-memory gzip file. Otherwise it returns <code>undef</code> and the <code>$gzerrno</code> variable will store the zlib error code.</p> <p>The <code>$buffer</code> parameter can either be a scalar or a scalar reference.</p> <p>See <a href="/pod/IO::Compress::Gzip">IO::Compress::Gzip</a> for an alternative way to carry out in-memory gzip compression.</p> <h2 id="Compress::Zlib::memGunzip"><a id="Compress1"></a>Compress::Zlib::memGunzip</h2> <p>This function is used to uncompress an in-memory gzip file.</p> <pre><code>$dest = Compress::Zlib::memGunzip($buffer) or die &quot;Cannot uncompress: $gzerrno\n&quot;;</code></pre> <p>If successful, it returns the uncompressed gzip file. Otherwise it returns <code>undef</code> and the <code>$gzerrno</code> variable will store the zlib error code.</p> <p>The <code>$buffer</code> parameter can either be a scalar or a scalar reference. The contents of the <code>$buffer</code> parameter are destroyed after calling this function.</p> <p>If <code>$buffer</code> consists of multiple concatenated gzip data streams only the first will be uncompressed. Use <code>gunzip</code> with the <code>MultiStream</code> option in the <code>IO::Uncompress::Gunzip</code> module if you need to deal with concatenated data streams.</p> <p>See <a href="/pod/IO::Uncompress::Gunzip">IO::Uncompress::Gunzip</a> for an alternative way to carry out in-memory gzip uncompression.</p> <h1 id="COMPRESS/UNCOMPRESS"><a id="COMPRESS"></a><a id="COMPRESS-UNCOMPRESS"></a>COMPRESS/UNCOMPRESS</h1> <p>Two functions are provided to perform in-memory compression/uncompression of RFC 1950 data streams. They are called <code>compress</code> and <code>uncompress</code>.</p> <dl> <dt id="$dest-=-compress($source-[,-$level]-)-;"><a id="dest-compress-source-level"></a><b>$dest = compress($source [, $level] ) ;</b></dt> <dd> <p>Compresses <code>$source</code>. If successful it returns the compressed data. Otherwise it returns <i>undef</i>.</p> <p>The source buffer, <code>$source</code>, can either be a scalar or a scalar reference.</p> <p>The <code>$level</code> parameter defines the compression level. Valid values are 0 through 9, <code>Z_NO_COMPRESSION</code>, <code>Z_BEST_SPEED</code>, <code>Z_BEST_COMPRESSION</code>, and <code>Z_DEFAULT_COMPRESSION</code>. If <code>$level</code> is not specified <code>Z_DEFAULT_COMPRESSION</code> will be used.</p> </dd> <dt id="$dest-=-uncompress($source)-;"><a id="dest-uncompress-source"></a><b>$dest = uncompress($source) ;</b></dt> <dd> <p>Uncompresses <code>$source</code>. If successful it returns the uncompressed data. Otherwise it returns <i>undef</i>.</p> <p>The source buffer can either be a scalar or a scalar reference.</p> </dd> </dl> <p>Please note: the two functions defined above are <i>not</i> compatible with the Unix commands of the same name.</p> <p>See <a href="/pod/IO::Deflate">IO::Deflate</a> and <a href="/pod/IO::Inflate">IO::Inflate</a> included with this distribution for an alternative interface for reading/writing RFC 1950 files/buffers.</p> <h1 id="Deflate-Interface"><a id="Deflate"></a>Deflate Interface</h1> <p>This section defines an interface that allows in-memory compression using the <i>deflate</i> interface provided by zlib.</p> <p>Here is a definition of the interface available:</p> <h2 id="($d,-$status)-=-deflateInit(-[OPT]-)"><a id="d-status-deflateInit-OPT"></a><b>($d, $status) = deflateInit( [OPT] )</b></h2> <p>Initialises a deflation stream.</p> <p>It combines the features of the <i>zlib</i> functions <code>deflateInit</code>, <code>deflateInit2</code> and <code>deflateSetDictionary</code>.</p> <p>If successful, it will return the initialised deflation stream, <code>$d</code> and <code>$status</code> of <code>Z_OK</code> in a list context. In scalar context it returns the deflation stream, <code>$d</code>, only.</p> <p>If not successful, the returned deflation stream (<code>$d</code>) will be <i>undef</i> and <code>$status</code> will hold the exact <i>zlib</i> error code.</p> <p>The function optionally takes a number of named options specified as <code>-Name=&gt;value</code> pairs. This allows individual options to be tailored without having to specify them all in the parameter list.</p> <p>For backward compatibility, it is also possible to pass the parameters as a reference to a hash containing the name=&gt;value pairs.</p> <p>The function takes one optional parameter, a reference to a hash. The contents of the hash allow the deflation interface to be tailored.</p> <p>Here is a list of the valid options:</p> <dl> <dt id="-Level"><a id="Level"></a><b>-Level</b></dt> <dd> <p>Defines the compression level. Valid values are 0 through 9, <code>Z_NO_COMPRESSION</code>, <code>Z_BEST_SPEED</code>, <code>Z_BEST_COMPRESSION</code>, and <code>Z_DEFAULT_COMPRESSION</code>.</p> <p>The default is Z_DEFAULT_COMPRESSION.</p> </dd> <dt id="-Method"><a id="Method"></a><b>-Method</b></dt> <dd> <p>Defines the compression method. The only valid value at present (and the default) is Z_DEFLATED.</p> </dd> <dt id="-WindowBits"><a id="WindowBits"></a><b>-WindowBits</b></dt> <dd> <p>To create an RFC 1950 data stream, set <code>WindowBits</code> to a positive number.</p> <p>To create an RFC 1951 data stream, set <code>WindowBits</code> to <code>-MAX_WBITS</code>.</p> <p>For a full definition of the meaning and valid values for <code>WindowBits</code> refer to the <i>zlib</i> documentation for <i>deflateInit2</i>.</p> <p>Defaults to MAX_WBITS.</p> </dd> <dt id="-MemLevel"><a id="MemLevel"></a><b>-MemLevel</b></dt> <dd> <p>For a definition of the meaning and valid values for <code>MemLevel</code> refer to the <i>zlib</i> documentation for <i>deflateInit2</i>.</p> <p>Defaults to MAX_MEM_LEVEL.</p> </dd> <dt id="-Strategy"><a id="Strategy"></a><b>-Strategy</b></dt> <dd> <p>Defines the strategy used to tune the compression. The valid values are <code>Z_DEFAULT_STRATEGY</code>, <code>Z_FILTERED</code> and <code>Z_HUFFMAN_ONLY</code>.</p> <p>The default is Z_DEFAULT_STRATEGY.</p> </dd> <dt id="-Dictionary"><a id="Dictionary"></a><b>-Dictionary</b></dt> <dd> <p>When a dictionary is specified <i>Compress::Zlib</i> will automatically call <code>deflateSetDictionary</code> directly after calling <code>deflateInit</code>. The Adler32 value for the dictionary can be obtained by calling the method <code>$d-&gt;dict_adler()</code>.</p> <p>The default is no dictionary.</p> </dd> <dt id="-Bufsize"><a id="Bufsize"></a><b>-Bufsize</b></dt> <dd> <p>Sets the initial size for the deflation buffer. If the buffer has to be reallocated to increase the size, it will grow in increments of <code>Bufsize</code>.</p> <p>The default is 4096.</p> </dd> </dl> <p>Here is an example of using the <code>deflateInit</code> optional parameter list to override the default buffer size and compression level. All other options will take their default values.</p> <pre><code>deflateInit( -Bufsize =&gt; 300, -Level =&gt; Z_BEST_SPEED ) ;</code></pre> <h2 id="($out,-$status)-=-$d-&gt;deflate($buffer)"><a id="out-status-d-deflate-buffer"></a><b>($out, $status) = $d-&gt;deflate($buffer)</b></h2> <p>Deflates the contents of <code>$buffer</code>. The buffer can either be a scalar or a scalar reference. When finished, <code>$buffer</code> will be completely processed (assuming there were no errors). If the deflation was successful it returns the deflated output, <code>$out</code>, and a status value, <code>$status</code>, of <code>Z_OK</code>.</p> <p>On error, <code>$out</code> will be <i>undef</i> and <code>$status</code> will contain the <i>zlib</i> error code.</p> <p>In a scalar context <code>deflate</code> will return <code>$out</code> only.</p> <p>As with the <i>deflate</i> function in <i>zlib</i>, it is not necessarily the case that any output will be produced by this method. So don&#39;t rely on the fact that <code>$out</code> is empty for an error test.</p> <h2 id="($out,-$status)-=-$d-&gt;flush()-=head2-($out,-$status)-=-$d-&gt;flush($flush_type)"><a id="out-status-d-flush-head2-out-status-d-flush-flush_type"></a><b>($out, $status) = $d-&gt;flush()</b> =head2 <b>($out, $status) = $d-&gt;flush($flush_type)</b></h2> <p>Typically used to finish the deflation. Any pending output will be returned via <code>$out</code>. <code>$status</code> will have a value <code>Z_OK</code> if successful.</p> <p>In a scalar context <code>flush</code> will return <code>$out</code> only.</p> <p>Note that flushing can seriously degrade the compression ratio, so it should only be used to terminate a decompression (using <code>Z_FINISH</code>) or when you want to create a <i>full flush point</i> (using <code>Z_FULL_FLUSH</code>).</p> <p>By default the <code>flush_type</code> used is <code>Z_FINISH</code>. Other valid values for <code>flush_type</code> are <code>Z_NO_FLUSH</code>, <code>Z_PARTIAL_FLUSH</code>, <code>Z_SYNC_FLUSH</code> and <code>Z_FULL_FLUSH</code>. It is strongly recommended that you only set the <code>flush_type</code> parameter if you fully understand the implications of what it does. See the <code>zlib</code> documentation for details.</p> <h2 id="$status-=-$d-&gt;deflateParams([OPT])"><a id="status-d-deflateParams-OPT"></a><b>$status = $d-&gt;deflateParams([OPT])</b></h2> <p>Change settings for the deflate stream <code>$d</code>.</p> <p>The list of the valid options is shown below. Options not specified will remain unchanged.</p> <dl> <dt id="-Level1"><a id="Level1"></a><b>-Level</b></dt> <dd> <p>Defines the compression level. Valid values are 0 through 9, <code>Z_NO_COMPRESSION</code>, <code>Z_BEST_SPEED</code>, <code>Z_BEST_COMPRESSION</code>, and <code>Z_DEFAULT_COMPRESSION</code>.</p> </dd> <dt id="-Strategy1"><a id="Strategy1"></a><b>-Strategy</b></dt> <dd> <p>Defines the strategy used to tune the compression. The valid values are <code>Z_DEFAULT_STRATEGY</code>, <code>Z_FILTERED</code> and <code>Z_HUFFMAN_ONLY</code>.</p> </dd> </dl> <h2 id="$d-&gt;dict_adler()"><a id="dict_adler"></a><a id="d-dict_adler"></a><b>$d-&gt;dict_adler()</b></h2> <p>Returns the adler32 value for the dictionary.</p> <h2 id="$d-&gt;msg()"><a id="msg"></a><a id="d-msg"></a><b>$d-&gt;msg()</b></h2> <p>Returns the last error message generated by zlib.</p> <h2 id="$d-&gt;total_in()"><a id="total_in"></a><a id="d-total_in"></a><b>$d-&gt;total_in()</b></h2> <p>Returns the total number of bytes uncompressed bytes input to deflate.</p> <h2 id="$d-&gt;total_out()"><a id="total_out"></a><a id="d-total_out"></a><b>$d-&gt;total_out()</b></h2> <p>Returns the total number of compressed bytes output from deflate.</p> <h2 id="Example">Example</h2> <p>Here is a trivial example of using <code>deflate</code>. It simply reads standard input, deflates it and writes it to standard output.</p> <pre><code>use strict ; use warnings ; use Compress::Zlib ; binmode STDIN; binmode STDOUT; my $x = deflateInit() or die &quot;Cannot create a deflation stream\n&quot; ; my ($output, $status) ; while (&lt;&gt;) { ($output, $status) = $x-&gt;deflate($_) ; $status == Z_OK or die &quot;deflation failed\n&quot; ; print $output ; } ($output, $status) = $x-&gt;flush() ; $status == Z_OK or die &quot;deflation failed\n&quot; ; print $output ;</code></pre> <h1 id="Inflate-Interface"><a id="Inflate"></a>Inflate Interface</h1> <p>This section defines the interface available that allows in-memory uncompression using the <i>deflate</i> interface provided by zlib.</p> <p>Here is a definition of the interface:</p> <h2 id="($i,-$status)-=-inflateInit()"><a id="i-status-inflateInit"></a><b>($i, $status) = inflateInit()</b></h2> <p>Initialises an inflation stream.</p> <p>In a list context it returns the inflation stream, <code>$i</code>, and the <i>zlib</i> status code in <code>$status</code>. In a scalar context it returns the inflation stream only.</p> <p>If successful, <code>$i</code> will hold the inflation stream and <code>$status</code> will be <code>Z_OK</code>.</p> <p>If not successful, <code>$i</code> will be <i>undef</i> and <code>$status</code> will hold the <i>zlib</i> error code.</p> <p>The function optionally takes a number of named options specified as <code>-Name=&gt;value</code> pairs. This allows individual options to be tailored without having to specify them all in the parameter list.</p> <p>For backward compatibility, it is also possible to pass the parameters as a reference to a hash containing the name=&gt;value pairs.</p> <p>The function takes one optional parameter, a reference to a hash. The contents of the hash allow the deflation interface to be tailored.</p> <p>Here is a list of the valid options:</p> <dl> <dt id="-WindowBits1"><a id="WindowBits1"></a><b>-WindowBits</b></dt> <dd> <p>To uncompress an RFC 1950 data stream, set <code>WindowBits</code> to a positive number.</p> <p>To uncompress an RFC 1951 data stream, set <code>WindowBits</code> to <code>-MAX_WBITS</code>.</p> <p>For a full definition of the meaning and valid values for <code>WindowBits</code> refer to the <i>zlib</i> documentation for <i>inflateInit2</i>.</p> <p>Defaults to MAX_WBITS.</p> </dd> <dt id="-Bufsize1"><a id="Bufsize1"></a><b>-Bufsize</b></dt> <dd> <p>Sets the initial size for the inflation buffer. If the buffer has to be reallocated to increase the size, it will grow in increments of <code>Bufsize</code>.</p> <p>Default is 4096.</p> </dd> <dt id="-Dictionary1"><a id="Dictionary1"></a><b>-Dictionary</b></dt> <dd> <p>The default is no dictionary.</p> </dd> </dl> <p>Here is an example of using the <code>inflateInit</code> optional parameter to override the default buffer size.</p> <pre><code>inflateInit( -Bufsize =&gt; 300 ) ;</code></pre> <h2 id="($out,-$status)-=-$i-&gt;inflate($buffer)"><a id="out-status-i-inflate-buffer"></a><b>($out, $status) = $i-&gt;inflate($buffer)</b></h2> <p>Inflates the complete contents of <code>$buffer</code>. The buffer can either be a scalar or a scalar reference.</p> <p>Returns <code>Z_OK</code> if successful and <code>Z_STREAM_END</code> if the end of the compressed data has been successfully reached. If not successful, <code>$out</code> will be <i>undef</i> and <code>$status</code> will hold the <i>zlib</i> error code.</p> <p>The <code>$buffer</code> parameter is modified by <code>inflate</code>. On completion it will contain what remains of the input buffer after inflation. This means that <code>$buffer</code> will be an empty string when the return status is <code>Z_OK</code>. When the return status is <code>Z_STREAM_END</code> the <code>$buffer</code> parameter will contains what (if anything) was stored in the input buffer after the deflated data stream.</p> <p>This feature is useful when processing a file format that encapsulates a compressed data stream (e.g. gzip, zip).</p> <h2 id="$status-=-$i-&gt;inflateSync($buffer)"><a id="status-i-inflateSync-buffer"></a><b>$status = $i-&gt;inflateSync($buffer)</b></h2> <p>Scans <code>$buffer</code> until it reaches either a <i>full flush point</i> or the end of the buffer.</p> <p>If a <i>full flush point</i> is found, <code>Z_OK</code> is returned and <code>$buffer</code> will be have all data up to the flush point removed. This can then be passed to the <code>deflate</code> method.</p> <p>Any other return code means that a flush point was not found. If more data is available, <code>inflateSync</code> can be called repeatedly with more compressed data until the flush point is found.</p> <h2 id="$i-&gt;dict_adler()"><a id="dict_adler1"></a><a id="i-dict_adler"></a><b>$i-&gt;dict_adler()</b></h2> <p>Returns the adler32 value for the dictionary.</p> <h2 id="$i-&gt;msg()"><a id="msg1"></a><a id="i-msg"></a><b>$i-&gt;msg()</b></h2> <p>Returns the last error message generated by zlib.</p> <h2 id="$i-&gt;total_in()"><a id="total_in1"></a><a id="i-total_in"></a><b>$i-&gt;total_in()</b></h2> <p>Returns the total number of bytes compressed bytes input to inflate.</p> <h2 id="$i-&gt;total_out()"><a id="total_out1"></a><a id="i-total_out"></a><b>$i-&gt;total_out()</b></h2> <p>Returns the total number of uncompressed bytes output from inflate.</p> <h2 id="Example1">Example</h2> <p>Here is an example of using <code>inflate</code>.</p> <pre><code>use strict ; use warnings ; use Compress::Zlib ; my $x = inflateInit() or die &quot;Cannot create a inflation stream\n&quot; ; my $input = &#39;&#39; ; binmode STDIN; binmode STDOUT; my ($output, $status) ; while (read(STDIN, $input, 4096)) { ($output, $status) = $x-&gt;inflate(\$input) ; print $output if $status == Z_OK or $status == Z_STREAM_END ; last if $status != Z_OK ; } die &quot;inflation failed\n&quot; unless $status == Z_STREAM_END ;</code></pre> <h1 id="CHECKSUM-FUNCTIONS"><a id="CHECKSUM"></a>CHECKSUM FUNCTIONS</h1> <p>Two functions are provided by <i>zlib</i> to calculate checksums. For the Perl interface, the order of the two parameters in both functions has been reversed. This allows both running checksums and one off calculations to be done.</p> <pre><code>$crc = adler32($buffer [,$crc]) ; $crc = crc32($buffer [,$crc]) ;</code></pre> <p>The buffer parameters can either be a scalar or a scalar reference.</p> <p>If the $crc parameters is <code>undef</code>, the crc value will be reset.</p> <p>If you have built this module with zlib 1.2.3 or better, two more CRC-related functions are available.</p> <pre><code>$crc = crc32_combine($crc1, $crc2, $len2); $adler = adler32_combine($adler1, $adler2, $len2);</code></pre> <p>These functions allow checksums to be merged. Refer to the <i>zlib</i> documentation for more details.</p> <h1 id="Misc">Misc</h1> <h2 id="my-$version-=-Compress::Zlib::zlib_version();"><a id="my"></a><a id="my-version-Compress::Zlib::zlib_version"></a>my $version = Compress::Zlib::zlib_version();</h2> <p>Returns the version of the zlib library.</p> <h1 id="CONSTANTS">CONSTANTS</h1> <p>All the <i>zlib</i> constants are automatically imported when you make use of <i>Compress::Zlib</i>.</p> <h1 id="SUPPORT">SUPPORT</h1> <p>General feedback/questions/bug reports should be sent to <a href="https://github.com/pmqs/IO-Compress/issues">https://github.com/pmqs/IO-Compress/issues</a> (preferred) or <a href="https://rt.cpan.org/Public/Dist/Display.html?Name=IO-Compress">https://rt.cpan.org/Public/Dist/Display.html?Name=IO-Compress</a>.</p> <h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1> <p><a href="/pod/IO::Compress::Gzip">IO::Compress::Gzip</a>, <a href="/pod/IO::Uncompress::Gunzip">IO::Uncompress::Gunzip</a>, <a href="/pod/IO::Compress::Deflate">IO::Compress::Deflate</a>, <a href="/pod/IO::Uncompress::Inflate">IO::Uncompress::Inflate</a>, <a href="/pod/IO::Compress::RawDeflate">IO::Compress::RawDeflate</a>, <a href="/pod/IO::Uncompress::RawInflate">IO::Uncompress::RawInflate</a>, <a href="/pod/IO::Compress::Bzip2">IO::Compress::Bzip2</a>, <a href="/pod/IO::Uncompress::Bunzip2">IO::Uncompress::Bunzip2</a>, <a href="/pod/IO::Compress::Lzma">IO::Compress::Lzma</a>, <a href="/pod/IO::Uncompress::UnLzma">IO::Uncompress::UnLzma</a>, <a href="/pod/IO::Compress::Xz">IO::Compress::Xz</a>, <a href="/pod/IO::Uncompress::UnXz">IO::Uncompress::UnXz</a>, <a href="/pod/IO::Compress::Lzip">IO::Compress::Lzip</a>, <a href="/pod/IO::Uncompress::UnLzip">IO::Uncompress::UnLzip</a>, <a href="/pod/IO::Compress::Lzop">IO::Compress::Lzop</a>, <a href="/pod/IO::Uncompress::UnLzop">IO::Uncompress::UnLzop</a>, <a href="/pod/IO::Compress::Lzf">IO::Compress::Lzf</a>, <a href="/pod/IO::Uncompress::UnLzf">IO::Uncompress::UnLzf</a>, <a href="/pod/IO::Compress::Zstd">IO::Compress::Zstd</a>, <a href="/pod/IO::Uncompress::UnZstd">IO::Uncompress::UnZstd</a>, <a href="/pod/IO::Uncompress::AnyInflate">IO::Uncompress::AnyInflate</a>, <a href="/pod/IO::Uncompress::AnyUncompress">IO::Uncompress::AnyUncompress</a></p> <p><a href="/pod/distribution/IO-Compress/lib/IO/Compress/FAQ.pod">IO::Compress::FAQ</a></p> <p><a href="/pod/File::GlobMapper">File::GlobMapper</a>, <a href="/pod/Archive::Zip">Archive::Zip</a>, <a href="/pod/Archive::Tar">Archive::Tar</a>, <a href="/pod/IO::Zlib">IO::Zlib</a></p> <p>For RFC 1950, 1951 and 1952 see <a href="https://datatracker.ietf.org/doc/html/rfc1950">https://datatracker.ietf.org/doc/html/rfc1950</a>, <a href="https://datatracker.ietf.org/doc/html/rfc1951">https://datatracker.ietf.org/doc/html/rfc1951</a> and <a href="https://datatracker.ietf.org/doc/html/rfc1952">https://datatracker.ietf.org/doc/html/rfc1952</a></p> <p>The <i>zlib</i> compression library was written by Jean-loup Gailly <code>gzip@prep.ai.mit.edu</code> and Mark Adler <code>madler@alumni.caltech.edu</code>.</p> <p>The primary site for the <i>zlib</i> compression library is <a href="http://www.zlib.org">http://www.zlib.org</a>.</p> <p>The primary site for the <i>zlib-ng</i> compression library is <a href="https://github.com/zlib-ng/zlib-ng">https://github.com/zlib-ng/zlib-ng</a>.</p> <p>The primary site for gzip is <a href="http://www.gzip.org">http://www.gzip.org</a>.</p> <h1 id="AUTHOR">AUTHOR</h1> <p>This module was written by Paul Marquess, <code>pmqs@cpan.org</code>.</p> <h1 id="MODIFICATION-HISTORY"><a id="MODIFICATION"></a>MODIFICATION HISTORY</h1> <p>See the Changes file.</p> <h1 id="COPYRIGHT-AND-LICENSE"><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</h1> <p>Copyright (c) 1995-2024 Paul Marquess. All rights reserved.</p> <p>This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p></div> <div id="metacpan_install-instructions-dialog" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 class="modal-title">Module Install Instructions</h4> </div> <div class="modal-body"> <p>To install IO::Compress, 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::Compress</code></pre> <p><a href="/pod/CPAN">CPAN shell</a></p> <pre><code>perl -MCPAN -e shell install IO::Compress</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