CINXE.COM
perlfaq9 - Web, Email and Networking - metacpan.org
<!DOCTYPE html> <html lang="en-US"> <head> <title>perlfaq9 - Web, Email and Networking - 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 perlfaq - MetaCPAN" href="/dist/perlfaq/releases.rss" /> <link rel="canonical" href="https://metacpan.org/dist/perlfaq/view/lib/perlfaq9.pod" /> <meta name="description" content="Web, Email and Networking" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5"> <link rel="shortcut icon" href="/static/icons/favicon.ico"> <link rel="apple-touch-icon" sizes="152x152" href="/static/icons/apple-touch-icon.png"> <link rel="search" href="/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN"> <script async src="https://perl-ads.perlhacks.com/perl-ads.js"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=G-E82Q2V8LVD"></script> <meta property="og:site_name" content="MetaCPAN" /> <meta name="twitter:site" content="@metacpan" /> <meta property="og:type" content="article" /> <meta name="twitter:card" content="summary" /> <meta property="og:url" content="https://metacpan.org/dist/perlfaq/view/lib/perlfaq9.pod" /> <meta property="og:title" content="perlfaq9" /> <meta property="og:description" content="Web, Email and Networking" /> <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 perlfaq was released."> <span class="relatize">18 Feb 2024 17:37:36 UTC</span> </div> </li> <li> Distribution: <a href="/dist/perlfaq">perlfaq</a> </li> <li> <a data-keyboard-shortcut="g s" href="/dist/perlfaq/source/lib/perlfaq9.pod">Source</a> (<a href="/dist/perlfaq/source/lib/perlfaq9.pod?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g b" href="/dist/perlfaq/source/lib">Browse</a> (<a href="/dist/perlfaq/source/lib?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g c" href="/dist/perlfaq/changes">Changes</a> </li> <li> <a rel="noopener nofollow" class="nopopup" href="https://metacpan.org/release/perlfaq">Homepage</a> </li> <li> <a class="nopopup" href="/dist/perlfaq/contribute">How to Contribute</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/perl-doc-cats/perlfaq">Repository</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/perl-doc-cats/perlfaq/issues">Issues</a> </li> <li> <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=perlfaq+5.20240218" title="Matrix">Testers</a> <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/p/perlfaq.html?oncpan=1&distmat=1&version=5.20240218&grade=2" style="color: #090">553</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/p/perlfaq.html?oncpan=1&distmat=1&version=5.20240218&grade=3" style="color: #900">0</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/p/perlfaq.html?oncpan=1&distmat=1&version=5.20240218&grade=4">0</a>)</span> </li> <li> <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/ETHER/perlfaq-5.20240218">Kwalitee</a> </li> <li> <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on perlfaq 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> Perl: v5.6.0 </li> <li class="chat-banner"> <div><a rel="noopener nofollow" target="_blank" href="https://kiwiirc.com/nextclient/#irc://irc.perl.org/#perl-faq?nick=mc-guest-?">Chat with us!</a></div> </li> <li class="nav-header">Activity</li> <li> <div class="activity-graph"> <img src="/dist/perlfaq/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/E/ET/ETHER/perlfaq-5.20240218.tar.gz"> Download (<span itemprop="fileSize">199.05KB</span>)</a> </li> <li> <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FETHER%2Fperlfaq-5.20240218%2Flib%2Fperlfaq9.pod"> MetaCPAN Explorer </a> </li> <li> <a href="/dist/perlfaq/permissions"> Permissions </a> </li> <li> <a href="/dist/perlfaq/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:perlfaq"> <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="perlfaq"> <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/ETHER/perlfaq-5.20240218/view/lib/perlfaq9.pod" >5.20240218 (ETHER on 2024-02-18)</option> <option value="/release/LLAP/perlfaq-5.021011/view/lib/perlfaq9.pod" >5.021011 (LLAP on 2016-03-04)</option> <option value="/release/FLORA/perlfaq-5.01500301/view/lib/perlfaq9.pod" >5.01500301 (FLORA on 2011-08-29)</option> <option value="/release/FLORA/perlfaq-5.015003/view/lib/perlfaq9.pod" >5.015003 (FLORA on 2011-08-26)</option> <option value="/release/FLORA/perlfaq-5.015000/view/lib/perlfaq9.pod" >5.015000 (FLORA on 2011-07-08)</option> <optgroup label="BackPAN">' <option value="/release/ETHER/perlfaq-5.20230812/view/lib/perlfaq9.pod" >5.20230812 (ETHER on 2023-08-12)</option> <option value="/release/ETHER/perlfaq-5.20230701/view/lib/perlfaq9.pod" >5.20230701 (ETHER on 2023-07-01)</option> <option value="/release/ETHER/perlfaq-5.20210520/view/lib/perlfaq9.pod" >5.20210520 (ETHER on 2021-05-20)</option> <option value="/release/ETHER/perlfaq-5.20210411/view/lib/perlfaq9.pod" >5.20210411 (ETHER on 2021-04-11)</option> <option value="/release/ETHER/perlfaq-5.20201107/view/lib/perlfaq9.pod" >5.20201107 (ETHER on 2020-11-07)</option> <option value="/release/ETHER/perlfaq-5.20200523/view/lib/perlfaq9.pod" >5.20200523 (ETHER on 2020-05-22)</option> <option value="/release/ETHER/perlfaq-5.20200522/view/lib/perlfaq9.pod" >5.20200522 (ETHER on 2020-05-22)</option> <option value="/release/ETHER/perlfaq-5.20200125/view/lib/perlfaq9.pod" >5.20200125 (ETHER on 2020-01-25)</option> <option value="/release/ETHER/perlfaq-5.20191102/view/lib/perlfaq9.pod" >5.20191102 (ETHER on 2019-11-02)</option> <option value="/release/ETHER/perlfaq-5.20190126/view/lib/perlfaq9.pod" >5.20190126 (ETHER on 2019-01-26)</option> <option value="/release/ETHER/perlfaq-5.20180915/view/lib/perlfaq9.pod" >5.20180915 (ETHER on 2018-09-15)</option> <option value="/release/ETHER/perlfaq-5.20180913/view/lib/perlfaq9.pod" >5.20180913 (ETHER on 2018-09-13)</option> <option value="/release/ETHER/perlfaq-5.20180605/view/lib/perlfaq9.pod" >5.20180605 (ETHER on 2018-06-05)</option> <option value="/release/LLAP/perlfaq-5.021010/view/lib/perlfaq9.pod" >5.021010 (LLAP on 2015-07-28)</option> <option value="/release/ETHER/perlfaq-5.021009/view/lib/perlfaq9.pod" >5.021009 (ETHER on 2015-01-25)</option> <option value="/release/ETHER/perlfaq-5.0150046/view/lib/perlfaq9.pod" >5.0150046 (ETHER on 2014-10-19)</option> <option value="/release/LLAP/perlfaq-5.0150045/view/lib/perlfaq9.pod" >5.0150045 (LLAP on 2014-08-03)</option> <option value="/release/LLAP/perlfaq-5.0150044/view/lib/perlfaq9.pod" >5.0150044 (LLAP on 2013-09-12)</option> <option value="/release/LLAP/perlfaq-5.0150043/view/lib/perlfaq9.pod" >5.0150043 (LLAP on 2013-05-12)</option> <option value="/release/LLAP/perlfaq-5.0150042/view/lib/perlfaq9.pod" >5.0150042 (LLAP on 2013-03-06)</option> <option value="/release/LLAP/perlfaq-5.0150041/view/lib/perlfaq9.pod" >5.0150041 (LLAP on 2012-08-15)</option> <option value="/release/LLAP/perlfaq-5.0150040/view/lib/perlfaq9.pod" >5.0150040 (LLAP on 2012-06-09)</option> <option value="/release/LLAP/perlfaq-5.0150039/view/lib/perlfaq9.pod" >5.0150039 (LLAP on 2012-02-18)</option> <option value="/release/LLAP/perlfaq-5.0150038/view/lib/perlfaq9.pod" >5.0150038 (LLAP on 2012-01-19)</option> <option value="/release/LLAP/perlfaq-5.0150037/view/lib/perlfaq9.pod" >5.0150037 (LLAP on 2012-01-08)</option> <option value="/release/LLAP/perlfaq-5.0150036/view/lib/perlfaq9.pod" >5.0150036 (LLAP on 2011-10-22)</option> <option value="/release/LLAP/perlfaq-5.0150035/view/lib/perlfaq9.pod" >5.0150035 (LLAP on 2011-09-26)</option> <option value="/release/LLAP/perlfaq-5.0150034/view/lib/perlfaq9.pod" >5.0150034 (LLAP on 2011-09-12)</option> <option value="/release/LLAP/perlfaq-5.0150033/view/lib/perlfaq9.pod" >5.0150033 (LLAP on 2011-08-30)</option> <option value="/release/LLAP/perlfaq-5.0150032/view/lib/perlfaq9.pod" >5.0150032 (LLAP on 2011-08-30)</option> <option value="/release/LLAP/perlfaq-5.01500302/view/lib/perlfaq9.pod" >5.01500302 (LLAP on 2011-08-29)</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/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20240218/lib/perlfaq9.pod" >5.20240218 (ETHER on 2024-02-18)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.021011/lib/perlfaq9.pod" >5.021011 (LLAP on 2016-03-04)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/FLORA/perlfaq-5.01500301/lib/perlfaq9.pod" >5.01500301 (FLORA on 2011-08-29)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/FLORA/perlfaq-5.015003/lib/perlfaq9.pod" >5.015003 (FLORA on 2011-08-26)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/FLORA/perlfaq-5.015000/lib/perlfaq9.pod" >5.015000 (FLORA on 2011-07-08)</option> <optgroup label="BackPAN">' <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20230812/lib/perlfaq9.pod" >5.20230812 (ETHER on 2023-08-12)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20230701/lib/perlfaq9.pod" >5.20230701 (ETHER on 2023-07-01)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20210520/lib/perlfaq9.pod" >5.20210520 (ETHER on 2021-05-20)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20210411/lib/perlfaq9.pod" >5.20210411 (ETHER on 2021-04-11)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20201107/lib/perlfaq9.pod" >5.20201107 (ETHER on 2020-11-07)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20200523/lib/perlfaq9.pod" >5.20200523 (ETHER on 2020-05-22)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20200522/lib/perlfaq9.pod" >5.20200522 (ETHER on 2020-05-22)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20200125/lib/perlfaq9.pod" >5.20200125 (ETHER on 2020-01-25)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20191102/lib/perlfaq9.pod" >5.20191102 (ETHER on 2019-11-02)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20190126/lib/perlfaq9.pod" >5.20190126 (ETHER on 2019-01-26)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20180915/lib/perlfaq9.pod" >5.20180915 (ETHER on 2018-09-15)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20180913/lib/perlfaq9.pod" >5.20180913 (ETHER on 2018-09-13)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.20180605/lib/perlfaq9.pod" >5.20180605 (ETHER on 2018-06-05)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.021010/lib/perlfaq9.pod" >5.021010 (LLAP on 2015-07-28)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.021009/lib/perlfaq9.pod" >5.021009 (ETHER on 2015-01-25)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/ETHER/perlfaq-5.0150046/lib/perlfaq9.pod" >5.0150046 (ETHER on 2014-10-19)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150045/lib/perlfaq9.pod" >5.0150045 (LLAP on 2014-08-03)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150044/lib/perlfaq9.pod" >5.0150044 (LLAP on 2013-09-12)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150043/lib/perlfaq9.pod" >5.0150043 (LLAP on 2013-05-12)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150042/lib/perlfaq9.pod" >5.0150042 (LLAP on 2013-03-06)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150041/lib/perlfaq9.pod" >5.0150041 (LLAP on 2012-08-15)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150040/lib/perlfaq9.pod" >5.0150040 (LLAP on 2012-06-09)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150039/lib/perlfaq9.pod" >5.0150039 (LLAP on 2012-02-18)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150038/lib/perlfaq9.pod" >5.0150038 (LLAP on 2012-01-19)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150037/lib/perlfaq9.pod" >5.0150037 (LLAP on 2012-01-08)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150036/lib/perlfaq9.pod" >5.0150036 (LLAP on 2011-10-22)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150035/lib/perlfaq9.pod" >5.0150035 (LLAP on 2011-09-26)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150034/lib/perlfaq9.pod" >5.0150034 (LLAP on 2011-09-12)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150033/lib/perlfaq9.pod" >5.0150033 (LLAP on 2011-08-30)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.0150032/lib/perlfaq9.pod" >5.0150032 (LLAP on 2011-08-30)</option> <option value="/release/ETHER/perlfaq-5.20240218/diff/LLAP/perlfaq-5.01500302/lib/perlfaq9.pod" >5.01500302 (LLAP on 2011-08-29)</option> </optgroup> </select> </li> <li> <ul class="dependencies"> <li class="nav-header">Dependencies</li> <li><i>none</i></li> <li> <hr> </li> <li> <a href="/module/perlfaq9/requires">Reverse dependencies</a> </li> <li> <a href="http://deps.cpantesters.org/?module=perlfaq9">CPAN Testers List</a> </li> <li> <a href="https://cpandeps.grinnz.com/?dist=perlfaq">Dependency graph</a> </li> </ul> </li> <li class="nav-header">Permalinks</li> <li> <a href="/release/ETHER/perlfaq-5.20240218/view/lib/perlfaq9.pod">This version</a> </li> <li> <a href="/dist/perlfaq/view/lib/perlfaq9.pod">Latest version</a> </li> <li> <div class="plussers"> <div class="nav-header">++ed by:</div> <div> <a class="display-all" href="/author/KBOWEN"><img src="https://www.gravatar.com/avatar/87a27cf45d31bf77e02a5b4c23d2baea?d=identicon&s=20" title="KBOWEN" alt="KBOWEN"></a> <a class="display-all" href="/author/DESERTFOX"><img src="https://www.gravatar.com/avatar/bedc2681974cb3fc95fcd313a66e04b4?d=identicon&s=20" title="DESERTFOX" alt="DESERTFOX"></a> <a class="display-all" href="/author/RWP"><img src="https://www.gravatar.com/avatar/7110eb2389e69a066d9d7cad7a1cc2bf?d=identicon&s=20" title="RWP" alt="RWP"></a> <a class="display-all" href="/author/KES"><img src="https://www.gravatar.com/avatar/e8530f00b43b4f6a056f8ad4ee52ea47?d=identicon&s=20" title="KES" alt="KES"></a> </div> <!-- Display counts of plussers--> <div> <a href="/dist/perlfaq/plussers">4 PAUSE users</a> </div> <div> 8 non-PAUSE users </div> </div> </li> <li> <div> <button class="contributors-show-button btn-link">and 53 contributors</button> <div id="metacpan_contributors" class="slide-out slide-out-hidden"> <div> <ul> <li class="contributor" data-contrib-email="talexb@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Alex Beamish </li> <li class="contributor" data-cpan-author="BDFOY" data-contrib-email="bdfoy@cpan.org briandfoy@pobox.com" > <a href="/author/BDFOY" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/168427dea0a034607ee7850f3de98ea2?d=identicon&s=20" /> brian d foy </a> </li> <li class="contributor" data-contrib-email="brian.fraser@booking.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Brian Fraser </li> <li class="contributor" data-contrib-email="celejar@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Celejar </li> <li class="contributor" data-cpan-author="APEIRON" data-contrib-email="apeiron@cpan.org" > <a href="/author/APEIRON" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/1a6af1c09654c59259d1ed6b08109970?d=identicon&s=20" /> Chris Nehren </a> </li> <li class="contributor" data-contrib-email="walde.christian@googlemail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Christian Walde </li> <li class="contributor" data-cpan-author="CJM" data-contrib-email="perl@cjmweb.net" > <a href="/author/CJM" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/75ab2425a09e84ffc650a859523ac56a?d=identicon&s=20" /> Christopher J. Madsen </a> </li> <li class="contributor" data-contrib-email="grinnz@gmail.com grinnz@grinnz.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Dan Book </li> <li class="contributor" data-contrib-email="bourbaki007@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> darfich </li> <li class="contributor" data-contrib-email="dave@dave.org.uk" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Dave Cross </li> <li class="contributor" data-cpan-author="BIGPRESH" data-contrib-email="davidp@preshweb.co.uk" > <a href="/author/BIGPRESH" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/66f9cc184db11ee7810f4bc2d029ec17?d=identicon&s=20" /> David Precious </a> </li> <li class="contributor" data-contrib-email="dsteinbrunner@pobox.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> David Steinbrunner </li> <li class="contributor" data-contrib-email="dctabuyz@yandex.ru" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> dctabuyz </li> <li class="contributor" data-contrib-email="denilsonsa@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Denilson S谩 Maia </li> <li class="contributor" data-contrib-email="jenkinsd@ochin.org" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Douglas L. Jenkins </li> <li class="contributor" data-contrib-email="choroba@matfyz.cz" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> E. Choroba </li> <li class="contributor" data-contrib-email="eric.git@iijo.org" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Eric Johnson </li> <li class="contributor" data-cpan-author="SPROUT" data-contrib-email="sprout@cpan.org" > <a href="/author/SPROUT" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/30bd18493bc25ab8d09ea1050dd28f47?d=identicon&s=20" /> Father Chrysostomos </a> </li> <li class="contributor" data-contrib-email="felipe@felipegasper.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Felipe Gasper </li> <li class="contributor" data-contrib-email="rafl@debian.org" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Florian Ragwitz </li> <li class="contributor" data-contrib-email="xaerxess@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Grzegorz Ro偶niecki </li> <li class="contributor" data-contrib-email="hemanth.hm@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> hemanth.hm </li> <li class="contributor" data-cpan-author="LICHTKIND" data-contrib-email="lichtkind@cpan.org" > <a href="/author/LICHTKIND" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/b9e7c23657e71d73dfc0f0b049a53e66?d=identicon&s=20" /> Herbert Breunung </a> </li> <li class="contributor" data-cpan-author="HURRICUP" data-contrib-email="hurricup@gmail.com" > <a href="/author/HURRICUP" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/aac386b32b9399acd0ae98abadbbd608?d=identicon&s=20" /> hurricup </a> </li> <li class="contributor" data-cpan-author="JKEENAN" data-contrib-email="jkeenan@cpan.org" > <a href="/author/JKEENAN" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/916bcaf0f8dbf1a198589096b293c603?d=identicon&s=20" /> James E Keenan </a> </li> <li class="contributor" data-contrib-email="jeffreykegler@jeffreykegler.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Jeffrey Kegler </li> <li class="contributor" data-contrib-email="explorer@joaquinferrero.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Joaqu铆n Ferrero </li> <li class="contributor" data-cpan-author="JMASLAK" data-contrib-email="jmaslak@antelope.net" > <a href="/author/JMASLAK" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/43ad4790c6562740f661ab775418f69e?d=identicon&s=20" /> Joel Maslak </a> </li> <li class="contributor" data-contrib-email="brainbuz@brainbuz.org" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> John Karr </li> <li class="contributor" data-contrib-email="laurent.dami@free.fr" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Laurent Dami </li> <li class="contributor" data-cpan-author="LLAP" data-contrib-email="LLAP@cpan.org leo@cuckoo.org" > <a href="/author/LLAP" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/fe83c062043dc4e41c9af07b080e306e?d=identicon&s=20" /> Leo Lapworth </a> </li> <li class="contributor" data-contrib-email="l.mai@web.de" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Lukas Mai </li> <li class="contributor" data-cpan-author="MHASCH" data-contrib-email="mhasch@cpan.org" > <a href="/author/MHASCH" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/00cb277a14ecf41f329accf325a9da2d?d=identicon&s=20" /> Martin Becker </a> </li> <li class="contributor" data-contrib-email="mcgrath.martin@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Martin McGrath </li> <li class="contributor" data-contrib-email="wolfsage@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Matthew Horsfall </li> <li class="contributor" data-contrib-email="schwern@pobox.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Michael G. Schwern </li> <li class="contributor" data-contrib-email="michiel.beijen@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Michiel Beijen </li> <li class="contributor" data-contrib-email="doherty@cs.dal.ca" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Mike Doherty </li> <li class="contributor" data-contrib-email="gnat@frii.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Nat Torkington </li> <li class="contributor" data-contrib-email="ntyni@debian.org" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Niko Tyni </li> <li class="contributor" data-contrib-email="olaf@wundersolutions.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Olaf Alders </li> <li class="contributor" data-contrib-email="perlfaq-workers@perl.org" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> perlfaq-workers </li> <li class="contributor" data-cpan-author="BOOK" data-contrib-email="book@cpan.org" > <a href="/author/BOOK" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/caceed5798ea9b855532b257de4686e8?d=identicon&s=20" /> Philippe Bruhat (BooK) </a> </li> <li class="contributor" data-cpan-author="RJBS" data-contrib-email="rjbs@cpan.org" > <a href="/author/RJBS" class="cpan-author"> <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/cec6b9b88295ead26c65f8747a76561b?d=identicon&s=20" /> Ricardo Signes </a> </li> <li class="contributor" data-contrib-email="ferivoz@riseup.net" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Samanta Navarro </li> <li class="contributor" data-contrib-email="kraihx@gmail.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Sebastian Riedel </li> <li class="contributor" data-contrib-email="argrath@ub32.org" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> SHIRAKATA Kentaro </li> <li class="contributor" data-contrib-email="shlomif@iglu.org.il" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Shlomi Fish </li> <li class="contributor" data-contrib-email="Smylers@stripey.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Smylers </li> <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&s=20" /> The Perl 5 Porters </a> </li> <li class="contributor" data-contrib-email="forum@s05.tinita.de" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> tina </li> <li class="contributor" data-contrib-email="tchrist@perl.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Tom Christiansen </li> <li class="contributor" data-contrib-email="tom@binary.com" > <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&s=20" /> Tom Molesworth </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/ETHER" class="author-name">Karen Etheridge</a> </span> <span> / </span> <div class="release dist-release status-latest maturity-released"> <span class="dropdown"><b class="caret"></b></span> <select class="select-navigator "> <option selected value="/release/ETHER/perlfaq-5.20240218/view/lib/perlfaq9.pod" >5.20240218 (ETHER on 2024-02-18)</option> <option value="/release/LLAP/perlfaq-5.021011/view/lib/perlfaq9.pod" >5.021011 (LLAP on 2016-03-04)</option> <option value="/release/FLORA/perlfaq-5.01500301/view/lib/perlfaq9.pod" >5.01500301 (FLORA on 2011-08-29)</option> <option value="/release/FLORA/perlfaq-5.015003/view/lib/perlfaq9.pod" >5.015003 (FLORA on 2011-08-26)</option> <option value="/release/FLORA/perlfaq-5.015000/view/lib/perlfaq9.pod" >5.015000 (FLORA on 2011-07-08)</option> <optgroup label="BackPAN">' <option value="/release/ETHER/perlfaq-5.20230812/view/lib/perlfaq9.pod" >5.20230812 (ETHER on 2023-08-12)</option> <option value="/release/ETHER/perlfaq-5.20230701/view/lib/perlfaq9.pod" >5.20230701 (ETHER on 2023-07-01)</option> <option value="/release/ETHER/perlfaq-5.20210520/view/lib/perlfaq9.pod" >5.20210520 (ETHER on 2021-05-20)</option> <option value="/release/ETHER/perlfaq-5.20210411/view/lib/perlfaq9.pod" >5.20210411 (ETHER on 2021-04-11)</option> <option value="/release/ETHER/perlfaq-5.20201107/view/lib/perlfaq9.pod" >5.20201107 (ETHER on 2020-11-07)</option> <option value="/release/ETHER/perlfaq-5.20200523/view/lib/perlfaq9.pod" >5.20200523 (ETHER on 2020-05-22)</option> <option value="/release/ETHER/perlfaq-5.20200522/view/lib/perlfaq9.pod" >5.20200522 (ETHER on 2020-05-22)</option> <option value="/release/ETHER/perlfaq-5.20200125/view/lib/perlfaq9.pod" >5.20200125 (ETHER on 2020-01-25)</option> <option value="/release/ETHER/perlfaq-5.20191102/view/lib/perlfaq9.pod" >5.20191102 (ETHER on 2019-11-02)</option> <option value="/release/ETHER/perlfaq-5.20190126/view/lib/perlfaq9.pod" >5.20190126 (ETHER on 2019-01-26)</option> <option value="/release/ETHER/perlfaq-5.20180915/view/lib/perlfaq9.pod" >5.20180915 (ETHER on 2018-09-15)</option> <option value="/release/ETHER/perlfaq-5.20180913/view/lib/perlfaq9.pod" >5.20180913 (ETHER on 2018-09-13)</option> <option value="/release/ETHER/perlfaq-5.20180605/view/lib/perlfaq9.pod" >5.20180605 (ETHER on 2018-06-05)</option> <option value="/release/LLAP/perlfaq-5.021010/view/lib/perlfaq9.pod" >5.021010 (LLAP on 2015-07-28)</option> <option value="/release/ETHER/perlfaq-5.021009/view/lib/perlfaq9.pod" >5.021009 (ETHER on 2015-01-25)</option> <option value="/release/ETHER/perlfaq-5.0150046/view/lib/perlfaq9.pod" >5.0150046 (ETHER on 2014-10-19)</option> <option value="/release/LLAP/perlfaq-5.0150045/view/lib/perlfaq9.pod" >5.0150045 (LLAP on 2014-08-03)</option> <option value="/release/LLAP/perlfaq-5.0150044/view/lib/perlfaq9.pod" >5.0150044 (LLAP on 2013-09-12)</option> <option value="/release/LLAP/perlfaq-5.0150043/view/lib/perlfaq9.pod" >5.0150043 (LLAP on 2013-05-12)</option> <option value="/release/LLAP/perlfaq-5.0150042/view/lib/perlfaq9.pod" >5.0150042 (LLAP on 2013-03-06)</option> <option value="/release/LLAP/perlfaq-5.0150041/view/lib/perlfaq9.pod" >5.0150041 (LLAP on 2012-08-15)</option> <option value="/release/LLAP/perlfaq-5.0150040/view/lib/perlfaq9.pod" >5.0150040 (LLAP on 2012-06-09)</option> <option value="/release/LLAP/perlfaq-5.0150039/view/lib/perlfaq9.pod" >5.0150039 (LLAP on 2012-02-18)</option> <option value="/release/LLAP/perlfaq-5.0150038/view/lib/perlfaq9.pod" >5.0150038 (LLAP on 2012-01-19)</option> <option value="/release/LLAP/perlfaq-5.0150037/view/lib/perlfaq9.pod" >5.0150037 (LLAP on 2012-01-08)</option> <option value="/release/LLAP/perlfaq-5.0150036/view/lib/perlfaq9.pod" >5.0150036 (LLAP on 2011-10-22)</option> <option value="/release/LLAP/perlfaq-5.0150035/view/lib/perlfaq9.pod" >5.0150035 (LLAP on 2011-09-26)</option> <option value="/release/LLAP/perlfaq-5.0150034/view/lib/perlfaq9.pod" >5.0150034 (LLAP on 2011-09-12)</option> <option value="/release/LLAP/perlfaq-5.0150033/view/lib/perlfaq9.pod" >5.0150033 (LLAP on 2011-08-30)</option> <option value="/release/LLAP/perlfaq-5.0150032/view/lib/perlfaq9.pod" >5.0150032 (LLAP on 2011-08-30)</option> <option value="/release/LLAP/perlfaq-5.01500302/view/lib/perlfaq9.pod" >5.01500302 (LLAP on 2011-08-29)</option> </optgroup> </select> <a data-keyboard-shortcut="g d" class="release-name" href="/dist/perlfaq">perlfaq-5.20240218</a> </div> <span class="river-gauge-gauge"> <svg width="24px" height="15px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g> <title> River stage zero No dependents </title> <rect x="0" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="5" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="10" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="15" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="20" y="0" width="4" height="15" fill="#e4e2e2" /> </g> </svg> </span> <div id="perlfaq-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="perlfaq-5.20240218"> <input type="hidden" name="author" value="ETHER"> <input type="hidden" name="distribution" value="perlfaq"> <button type="submit" class="favorite highlight"><span>12</span> ++</button> </form> </div> <div class="show-logged-out"> <button class="fav-not-logged-in favorite highlight"><span>12</span> ++</button> </div> / <span>perlfaq9</span> </div> </div> <main class="content"> <nav class="toc"> <div class="toc-header"><strong>Contents</strong></div> <ul> <li><a href="#NAME">NAME</a></li> <li><a href="#VERSION">VERSION</a></li> <li><a href="#DESCRIPTION">DESCRIPTION</a> <ul> <li><a href="#Should-I-use-a-web-framework%3F">Should I use a web framework?</a></li> <li><a href="#Which-web-framework-should-I-use%3F">Which web framework should I use? </a></li> <li><a href="#What-is-Plack-and-PSGI%3F">What is Plack and PSGI?</a></li> <li><a href="#How-do-I-remove-HTML-from-a-string%3F">How do I remove HTML from a string?</a></li> <li><a href="#How-do-I-extract-URLs%3F">How do I extract URLs?</a></li> <li><a href="#How-do-I-fetch-an-HTML-file%3F">How do I fetch an HTML file?</a></li> <li><a href="#How-do-I-automate-an-HTML-form-submission%3F">How do I automate an HTML form submission?</a></li> <li><a href="#How-do-I-decode-or-create-those-%25-encodings-on-the-web%3F">How do I decode or create those %-encodings on the web? </a></li> <li><a href="#How-do-I-redirect-to-another-page%3F">How do I redirect to another page?</a></li> <li><a href="#How-do-I-put-a-password-on-my-web-pages%3F">How do I put a password on my web pages?</a></li> <li><a href="#How-do-I-make-sure-users-can%27t-enter-values-into-a-form-that-causes-my-CGI-script-to-do-bad-things%3F">How do I make sure users can't enter values into a form that causes my CGI script to do bad things?</a></li> <li><a href="#How-do-I-parse-a-mail-header%3F">How do I parse a mail header?</a></li> <li><a href="#How-do-I-check-a-valid-mail-address%3F">How do I check a valid mail address?</a></li> <li><a href="#How-do-I-decode-a-MIME%2FBASE64-string%3F">How do I decode a MIME/BASE64 string?</a></li> <li><a href="#How-do-I-find-the-user%27s-mail-address%3F">How do I find the user's mail address?</a></li> <li><a href="#How-do-I-send-email%3F">How do I send email?</a></li> <li><a href="#How-do-I-use-MIME-to-make-an-attachment-to-a-mail-message%3F">How do I use MIME to make an attachment to a mail message?</a></li> <li><a href="#How-do-I-read-email%3F">How do I read email?</a></li> <li><a href="#How-do-I-find-out-my-hostname%2C-domainname%2C-or-IP-address%3F">How do I find out my hostname, domainname, or IP address? </a></li> <li><a href="#How-do-I-fetch%2Fput-an-(S)FTP-file%3F">How do I fetch/put an (S)FTP file?</a></li> <li><a href="#How-can-I-do-RPC-in-Perl%3F">How can I do RPC in Perl?</a></li> </ul> </li> <li><a href="#AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</a></li> </ul></nav> <div class="pod anchors"> <h1 id="NAME">NAME</h1> <p>perlfaq9 - Web, Email and Networking</p> <h1 id="VERSION">VERSION</h1> <p>version 5.20240218</p> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p>This section deals with questions related to running web sites, sending and receiving email as well as general networking.</p> <h2 id="Should-I-use-a-web-framework?"><a id="Should"></a><a id="Should-I-use-a-web-framework"></a>Should I use a web framework?</h2> <p>Yes. If you are building a web site with any level of interactivity (forms / users / databases), you will want to use a framework to make handling requests and responses easier.</p> <p>If there is no interactivity then you may still want to look at using something like <a href="https://metacpan.org/module/Template">Template Toolkit</a> or <a href="/pod/Plack::Middleware::TemplateToolkit">Plack::Middleware::TemplateToolkit</a> so maintenance of your HTML files (and other assets) is easier.</p> <h2 id="Which-web-framework-should-I-use?"><a id="Which"></a><a id="Which-web-framework-should-I-use"></a>Which web framework should I use? </h2> <p>There is no simple answer to this question. Perl frameworks can run everything from basic file servers and small scale intranets to massive multinational multilingual websites that are the core to international businesses.</p> <p>Below is a list of a few frameworks with comments which might help you in making a decision, depending on your specific requirements. Start by reading the docs, then ask questions on the relevant mailing list or IRC channel.</p> <dl> <dt id="Catalyst"><a href="/pod/Catalyst">Catalyst</a></dt> <dd> <p>Strongly object-oriented and fully-featured with a long development history and a large community and addon ecosystem. It is excellent for large and complex applications, where you have full control over the server.</p> </dd> <dt id="Dancer2"><a href="/pod/Dancer2">Dancer2</a></dt> <dd> <p>Free of legacy weight, providing a lightweight and easy to learn API. Has a growing addon ecosystem. It is best used for smaller projects and very easy to learn for beginners.</p> </dd> <dt id="Mojolicious"><a href="/pod/Mojolicious">Mojolicious</a></dt> <dd> <p>Self-contained and powerful for both small and larger projects, with a focus on HTML5 and real-time web technologies such as WebSockets.</p> </dd> <dt id="Web::Simple"><a id="Web"></a><a href="/pod/Web::Simple">Web::Simple</a></dt> <dd> <p>Strongly object-oriented and minimal, built for speed and intended as a toolkit for building micro web apps, custom frameworks or for tieing together existing Plack-compatible web applications with one central dispatcher.</p> </dd> </dl> <p>All of these interact with or use <a href="/pod/Plack">Plack</a> which is worth understanding the basics of when building a website in Perl (there is a lot of useful <a href="https://metacpan.org/search?q=plack%3A%3Amiddleware">Plack::Middleware</a>).</p> <h2 id="What-is-Plack-and-PSGI?"><a id="What"></a><a id="What-is-Plack-and-PSGI"></a>What is Plack and PSGI?</h2> <p><a href="/pod/PSGI">PSGI</a> is the Perl Web Server Gateway Interface Specification, it is a standard that many Perl web frameworks use, you should not need to understand it to build a web site, the part you might want to use is <a href="/pod/Plack">Plack</a>.</p> <p><a href="/pod/Plack">Plack</a> is a set of tools for using the PSGI stack. It contains <a href="https://metacpan.org/search?q=plack%3A%3Amiddleware">middleware</a> components, a reference server and utilities for Web application frameworks. Plack is like Ruby's Rack or Python's Paste for WSGI.</p> <p>You could build a web site using <a href="/pod/Plack">Plack</a> and your own code, but for anything other than a very basic web site, using a web framework (that uses <a href="https://plackperl.org">https://plackperl.org</a>) is a better option.</p> <h2 id="How-do-I-remove-HTML-from-a-string?"><a id="How"></a><a id="How-do-I-remove-HTML-from-a-string"></a>How do I remove HTML from a string?</h2> <p>Use <a href="/pod/HTML::Strip">HTML::Strip</a>, or <a href="/pod/HTML::FormatText">HTML::FormatText</a> which not only removes HTML but also attempts to do a little simple formatting of the resulting plain text.</p> <h2 id="How-do-I-extract-URLs?"><a id="How1"></a><a id="How-do-I-extract-URLs"></a>How do I extract URLs?</h2> <p><a href="/pod/HTML::SimpleLinkExtor">HTML::SimpleLinkExtor</a> will extract URLs from HTML, it handles anchors, images, objects, frames, and many other tags that can contain a URL. If you need anything more complex, you can create your own subclass of <a href="/pod/HTML::LinkExtor">HTML::LinkExtor</a> or <a href="/pod/HTML::Parser">HTML::Parser</a>. You might even use <a href="/pod/HTML::SimpleLinkExtor">HTML::SimpleLinkExtor</a> as an example for something specifically suited to your needs.</p> <p>You can use <a href="/pod/URI::Find">URI::Find</a> or <a href="/pod/URL::Search">URL::Search</a> to extract URLs from an arbitrary text document.</p> <h2 id="How-do-I-fetch-an-HTML-file?"><a id="How2"></a><a id="How-do-I-fetch-an-HTML-file"></a>How do I fetch an HTML file?</h2> <p>(contributed by brian d foy)</p> <p>The core <a href="/pod/HTTP::Tiny">HTTP::Tiny</a> module can fetch web resources and give their content back to you as a string:</p> <pre><code>use HTTP::Tiny; my $ua = HTTP::Tiny->new; my $html = $ua->get( "http://www.example.com/index.html" )->{content};</code></pre> <p>It can also store the resource directly in a file:</p> <pre><code>$ua->mirror( "http://www.example.com/index.html", "foo.html" );</code></pre> <p>If you need to do something more complicated, the <a href="/pod/HTTP::Tiny">HTTP::Tiny</a> object can be customized by setting attributes, or you can use <a href="/pod/LWP::UserAgent">LWP::UserAgent</a> from the libwww-perl distribution or <a href="/pod/Mojo::UserAgent">Mojo::UserAgent</a> from the Mojolicious distribution to make common tasks easier. If you want to simulate an interactive web browser, you can use the <a href="/pod/WWW::Mechanize">WWW::Mechanize</a> module.</p> <h2 id="How-do-I-automate-an-HTML-form-submission?"><a id="How3"></a><a id="How-do-I-automate-an-HTML-form-submission"></a>How do I automate an HTML form submission?</h2> <p>If you are doing something complex, such as moving through many pages and forms or a web site, you can use <a href="/pod/WWW::Mechanize">WWW::Mechanize</a>. See its documentation for all the details.</p> <p>If you're submitting values using the GET method, create a URL and encode the form using the <code>www_form_urlencode</code> method from <a href="/pod/HTTP::Tiny">HTTP::Tiny</a>:</p> <pre><code>use HTTP::Tiny; my $ua = HTTP::Tiny->new; my $query = $ua->www_form_urlencode([ q => 'DB_File', lucky => 1 ]); my $url = "https://metacpan.org/search?$query"; my $content = $ua->get($url)->{content};</code></pre> <p>If you're using the POST method, the <code>post_form</code> method will encode the content appropriately.</p> <pre><code>use HTTP::Tiny; my $ua = HTTP::Tiny->new; my $url = 'https://metacpan.org/search'; my $form = [ q => 'DB_File', lucky => 1 ]; my $content = $ua->post_form($url, $form)->{content};</code></pre> <h2 id="How-do-I-decode-or-create-those-%-encodings-on-the-web?"><a id="How4"></a><a id="How-do-I-decode-or-create-those--encodings-on-the-web"></a>How do I decode or create those %-encodings on the web? </h2> <p>Most of the time you should not need to do this as your web framework, or if you are making a request, the <a href="/pod/LWP">LWP</a> or other module would handle it for you.</p> <p>To encode a string yourself, use the <a href="/pod/URI::Escape">URI::Escape</a> module. The <code>uri_escape</code> function returns the escaped string:</p> <pre><code>my $original = "Colon : Hash # Percent %"; my $escaped = uri_escape( $original ); print "$escaped\n"; # 'Colon%20%3A%20Hash%20%23%20Percent%20%25'</code></pre> <p>To decode the string, use the <code>uri_unescape</code> function:</p> <pre><code>my $unescaped = uri_unescape( $escaped ); print $unescaped; # back to original</code></pre> <p>Remember not to encode a full URI, you need to escape each component separately and then join them together.</p> <h2 id="How-do-I-redirect-to-another-page?"><a id="How5"></a><a id="How-do-I-redirect-to-another-page"></a>How do I redirect to another page?</h2> <p>Most Perl Web Frameworks will have a mechanism for doing this, using the <a href="/pod/Catalyst">Catalyst</a> framework it would be:</p> <pre><code>$c->res->redirect($url); $c->detach();</code></pre> <p>If you are using Plack (which most frameworks do), then <a href="/pod/Plack::Middleware::Rewrite">Plack::Middleware::Rewrite</a> is worth looking at if you are migrating from Apache or have URL's you want to always redirect.</p> <h2 id="How-do-I-put-a-password-on-my-web-pages?"><a id="How6"></a><a id="How-do-I-put-a-password-on-my-web-pages"></a>How do I put a password on my web pages?</h2> <p>See if the web framework you are using has an authentication system and if that fits your needs.</p> <p>Alternativly look at <a href="/pod/Plack::Middleware::Auth::Basic">Plack::Middleware::Auth::Basic</a>, or one of the other <a href="https://metacpan.org/search?q=plack+auth">Plack authentication</a> options.</p> <h2 id="How-do-I-make-sure-users-can't-enter-values-into-a-form-that-causes-my-CGI-script-to-do-bad-things?"><a id="How7"></a><a id="How-do-I-make-sure-users-cant-enter-values-into-a-form-that-causes-my-CGI-script-to-do-bad-things"></a>How do I make sure users can't enter values into a form that causes my CGI script to do bad things?</h2> <p>(contributed by brian d foy)</p> <p>You can't prevent people from sending your script bad data. Even if you add some client-side checks, people may disable them or bypass them completely. For instance, someone might use a module such as <a href="/pod/LWP">LWP</a> to submit to your web site. If you want to prevent data that try to use SQL injection or other sorts of attacks (and you should want to), you have to not trust any data that enter your program.</p> <p>The <a href="/pod/perlsec">perlsec</a> documentation has general advice about data security. If you are using the <a href="/pod/DBI">DBI</a> module, use placeholder to fill in data. If you are running external programs with <code>system</code> or <code>exec</code>, use the list forms. There are many other precautions that you should take, too many to list here, and most of them fall under the category of not using any data that you don't intend to use. Trust no one.</p> <h2 id="How-do-I-parse-a-mail-header?"><a id="How8"></a><a id="How-do-I-parse-a-mail-header"></a>How do I parse a mail header?</h2> <p>Use the <a href="/pod/Email::MIME">Email::MIME</a> module. It's well-tested and supports all the craziness that you'll see in the real world (comment-folding whitespace, encodings, comments, etc.).</p> <pre><code>use Email::MIME; my $message = Email::MIME->new($rfc2822); my $subject = $message->header('Subject'); my $from = $message->header('From');</code></pre> <p>If you've already got some other kind of email object, consider passing it to <a href="/pod/Email::Abstract">Email::Abstract</a> and then using its cast method to get an <a href="/pod/Email::MIME">Email::MIME</a> object:</p> <pre><code>my $abstract = Email::Abstract->new($mail_message_object); my $email_mime_object = $abstract->cast('Email::MIME');</code></pre> <h2 id="How-do-I-check-a-valid-mail-address?"><a id="How9"></a><a id="How-do-I-check-a-valid-mail-address"></a>How do I check a valid mail address?</h2> <p>(partly contributed by Aaron Sherman)</p> <p>This isn't as simple a question as it sounds. There are two parts:</p> <p>a) How do I verify that an email address is correctly formatted?</p> <p>b) How do I verify that an email address targets a valid recipient?</p> <p>Without sending mail to the address and seeing whether there's a human on the other end to answer you, you cannot fully answer part <i>b</i>, but the <a href="/pod/Email::Valid">Email::Valid</a> module will do both part <i>a</i> and part <i>b</i> as far as you can in real-time.</p> <p>Our best advice for verifying a person's mail address is to have them enter their address twice, just as you normally do to change a password. This usually weeds out typos. If both versions match, send mail to that address with a personal message. If you get the message back and they've followed your directions, you can be reasonably assured that it's real.</p> <p>A related strategy that's less open to forgery is to give them a PIN (personal ID number). Record the address and PIN (best that it be a random one) for later processing. In the mail you send, include a link to your site with the PIN included. If the mail bounces, you know it's not valid. If they don't click on the link, either they forged the address or (assuming they got the message) following through wasn't important so you don't need to worry about it.</p> <h2 id="How-do-I-decode-a-MIME/BASE64-string?"><a id="How10"></a><a id="How-do-I-decode-a-MIME-BASE64-string"></a>How do I decode a MIME/BASE64 string?</h2> <p>The <a href="/pod/MIME::Base64">MIME::Base64</a> package handles this as well as the MIME/QP encoding. Decoding base 64 becomes as simple as:</p> <pre><code>use MIME::Base64; my $decoded = decode_base64($encoded);</code></pre> <p>The <a href="/pod/Email::MIME">Email::MIME</a> module can decode base 64-encoded email message parts transparently so the developer doesn't need to worry about it.</p> <h2 id="How-do-I-find-the-user's-mail-address?"><a id="How11"></a><a id="How-do-I-find-the-users-mail-address"></a>How do I find the user's mail address?</h2> <p>Ask them for it. There are so many email providers available that it's unlikely the local system has any idea how to determine a user's email address.</p> <p>The exception is for organization-specific email (e.g. foo@yourcompany.com) where policy can be codified in your program. In that case, you could look at $ENV{USER}, $ENV{LOGNAME}, and getpwuid($<) in scalar context, like so:</p> <pre><code>my $user_name = getpwuid($<)</code></pre> <p>But you still cannot make assumptions about whether this is correct, unless your policy says it is. You really are best off asking the user.</p> <h2 id="How-do-I-send-email?"><a id="How12"></a><a id="How-do-I-send-email"></a>How do I send email?</h2> <p>Use the <a href="/pod/Email::Stuffer">Email::Stuffer</a> module, like so:</p> <pre><code># first, create your message my $message = Email::Stuffer->from('you@example.com') ->to('friend@example.com') ->subject('Happy birthday!') ->text_body("Happy birthday to you!\n"); $message->send_or_die;</code></pre> <p>By default, <a href="/pod/Email::Sender::Simple">Email::Sender::Simple</a> (the <code>send</code> and <code>send_or_die</code> methods use this under the hood) will try <code>sendmail</code> first, if it exists in your $PATH. This generally isn't the case. If there's a remote mail server you use to send mail, consider investigating one of the Transport classes. At time of writing, the available transports include:</p> <dl> <dt id="Email::Sender::Transport::Sendmail"><a id="Email"></a><a href="/pod/Email::Sender::Transport::Sendmail">Email::Sender::Transport::Sendmail</a></dt> <dd> <p>This is the default. If you can use the <a href="http://man.he.net/man1/mail">mail(1)</a> or <a href="http://man.he.net/man1/mailx">mailx(1)</a> program to send mail from the machine where your code runs, you should be able to use this.</p> </dd> <dt id="Email::Sender::Transport::SMTP"><a id="Email1"></a><a href="/pod/Email::Sender::Transport::SMTP">Email::Sender::Transport::SMTP</a></dt> <dd> <p>This transport contacts a remote SMTP server over TCP. It optionally uses TLS or SSL and can authenticate to the server via SASL.</p> </dd> </dl> <p>Telling <a href="/pod/Email::Stuffer">Email::Stuffer</a> to use your transport is straightforward.</p> <pre><code>$message->transport($email_sender_transport_object)->send_or_die;</code></pre> <h2 id="How-do-I-use-MIME-to-make-an-attachment-to-a-mail-message?"><a id="How13"></a><a id="How-do-I-use-MIME-to-make-an-attachment-to-a-mail-message"></a>How do I use MIME to make an attachment to a mail message?</h2> <p><a href="/pod/Email::MIME">Email::MIME</a> directly supports multipart messages. <a href="/pod/Email::MIME">Email::MIME</a> objects themselves are parts and can be attached to other <a href="/pod/Email::MIME">Email::MIME</a> objects. Consult the <a href="/pod/Email::MIME">Email::MIME</a> documentation for more information, including all of the supported methods and examples of their use.</p> <p><a href="/pod/Email::Stuffer">Email::Stuffer</a> uses <a href="/pod/Email::MIME">Email::MIME</a> under the hood to construct messages, and wraps the most common attachment tasks with the simple <code>attach</code> and <code>attach_file</code> methods.</p> <pre><code>Email::Stuffer->to('friend@example.com') ->subject('The file') ->attach_file('stuff.csv') ->send_or_die;</code></pre> <h2 id="How-do-I-read-email?"><a id="How14"></a><a id="How-do-I-read-email"></a>How do I read email?</h2> <p>Use the <a href="/pod/Email::Folder">Email::Folder</a> module, like so:</p> <pre><code>use Email::Folder; my $folder = Email::Folder->new('/path/to/email/folder'); while(my $message = $folder->next_message) { # next_message returns Email::Simple objects, but we want # Email::MIME objects as they're more robust my $mime = Email::MIME->new($message->as_string); }</code></pre> <p>There are different classes in the <a href="/pod/Email::Folder">Email::Folder</a> namespace for supporting various mailbox types. Note that these modules are generally rather limited and only support <b>reading</b> rather than writing.</p> <h2 id="How-do-I-find-out-my-hostname,-domainname,-or-IP-address?"><a id="How15"></a><a id="How-do-I-find-out-my-hostname-domainname-or-IP-address"></a>How do I find out my hostname, domainname, or IP address? </h2> <p>(contributed by brian d foy)</p> <p>The <a href="/pod/Net::Domain">Net::Domain</a> module, which is part of the Standard Library starting in Perl 5.7.3, can get you the fully qualified domain name (FQDN), the host name, or the domain name.</p> <pre><code>use Net::Domain qw(hostname hostfqdn hostdomain); my $host = hostfqdn();</code></pre> <p>The <a href="/pod/Sys::Hostname">Sys::Hostname</a> module, part of the Standard Library, can also get the hostname:</p> <pre><code>use Sys::Hostname; $host = hostname();</code></pre> <p>The <a href="/pod/Sys::Hostname::Long">Sys::Hostname::Long</a> module takes a different approach and tries harder to return the fully qualified hostname:</p> <pre><code>use Sys::Hostname::Long 'hostname_long'; my $hostname = hostname_long();</code></pre> <p>To get the IP address, you can use the <code>gethostbyname</code> built-in function to turn the name into a number. To turn that number into the dotted octet form (a.b.c.d) that most people expect, use the <code>inet_ntoa</code> function from the <a href="/pod/Socket">Socket</a> module, which also comes with perl.</p> <pre><code>use Socket; my $address = inet_ntoa( scalar gethostbyname( $host || 'localhost' ) );</code></pre> <h2 id="How-do-I-fetch/put-an-(S)FTP-file?"><a id="How16"></a><a id="How-do-I-fetch-put-an-S-FTP-file"></a>How do I fetch/put an (S)FTP file?</h2> <p><a href="/pod/Net::FTP">Net::FTP</a>, and <a href="/pod/Net::SFTP">Net::SFTP</a> allow you to interact with FTP and SFTP (Secure FTP) servers.</p> <h2 id="How-can-I-do-RPC-in-Perl?"><a id="How17"></a><a id="How-can-I-do-RPC-in-Perl"></a>How can I do RPC in Perl?</h2> <p>Use one of the RPC modules( <a href="https://metacpan.org/search?q=RPC">https://metacpan.org/search?q=RPC</a> ).</p> <h1 id="AUTHOR-AND-COPYRIGHT"><a id="AUTHOR"></a>AUTHOR AND COPYRIGHT</h1> <p>Copyright (c) 1997-2010 Tom Christiansen, Nathan Torkington, and other authors as noted. All rights reserved.</p> <p>This documentation is free; you can redistribute it and/or modify it under the same terms as Perl itself.</p> <p>Irrespective of its distribution, all code examples in this file are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p></div> <div id="metacpan_install-instructions-dialog" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Module Install Instructions</h4> </div> <div class="modal-body"> <p>To install perlfaq, 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 perlfaq</code></pre> <p><a href="/pod/CPAN">CPAN shell</a></p> <pre><code>perl -MCPAN -e shell install perlfaq</code></pre> <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p> </div> <div class="modal-footer"> <a href="#" data-dismiss="modal" class="btn">Close</a> </div> </div> </div> </div> </main> <div class="content-pagination"> </div> </div> <footer class="footer"> <div class="footer-container"> <div class="footer-social"> <div class="footer-link footer-logo"> <a href="/"> <img src="/static/images/metacpan-logo.svg" alt="MetaCPAN" /> </a> </div> <a class="footer-social-link" href="https://github.com/metacpan"> <i class="fab fa-github-square"></i> </a> <a class="footer-social-link" href="https://fosstodon.org/@metacpan"> <i class="fab fa-mastodon"></i> </a> </div> <div class="footer-links"> <div class="footer-link"> <a href="/about">About</a> </div> <div class="footer-link"> <a href="/about/sponsors">Sponsor</a> </div> <div class="footer-link"> <a href="https://grep.metacpan.org">grep::cpan</a> </div> <div class="footer-link"> <a href="/recent">Recent</a> </div> <div class="footer-link"> <a href="/about/faq">FAQ</a> </div> <div class="footer-link"> <a href="/tools">Tools</a> </div> <div class="footer-link"> <a href="https://fastapi.metacpan.org/">API</a> </div> <div class="footer-link"> <a href="https://www.perl.org/">Perl.org</a> </div> </div> <div class="footer-sponsors"> <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener"> <img class="footer-sponsor-bytemark" src="/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener"> <img class="footer-sponsor-liquidweb" src="/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener"> <img class="footer-sponsor-deriv" src="/static/images/sponsors/deriv.svg" alt="Deriv logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener"> <img class="footer-sponsor-geocode" src="/static/images/sponsors/geocodelogo.svg" alt="Geocode logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener"> <img class="footer-sponsor-fastly" src="/static/images/sponsors/fastly_logo.svg" alt="Fastly logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener"> <img class="footer-sponsor-opencage" src="/static/images/sponsors/open-cage.svg" alt="OpenCage logo"> </a> <!-- Added 2024-07-22 --> <a class="footer-sponsor-link" target="_blank" href="https://www.elastic.co/" rel="noopener"> <img class="footer-sponsor-elastic" src="/static/images/sponsors/elastic.svg" alt="Elastic logo"> </a> <!-- Added 2024-07-22 --> <a class="footer-sponsor-link" target="_blank" href="https://route4me.com/" rel="noopener"> <img class="footer-sponsor-route4me" src="/static/images/sponsors/route4me.png" alt="Route4Me logo"> </a> </div> </div> </footer> <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Keyboard Shortcuts</h4> </div> <div class="modal-body row"> <div class="col-md-6"> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>Global</th> </tr> </thead> <tbody> <tr> <td class="keys"> <kbd>s</kbd> </td> <td>Focus search bar</td> </tr> <tr> <td class="keys"> <kbd>?</kbd> </td> <td>Bring up this help dialog</td> </tr> </tbody> </table> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>GitHub</th> </tr> </thead> <tbody> <tr> <td class="keys"> <kbd>g</kbd> <kbd>p</kbd> </td> <td>Go to pull requests</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>i</kbd> </td> <td>go to github issues (only if github is preferred repository)</td> </tr> </tbody> </table> </div> <div class="col-md-6"> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>POD</th> </tr> </thead> <tbody> <tr> <td class="keys"> <kbd>g</kbd> <kbd>a</kbd> </td> <td>Go to author</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>c</kbd> </td> <td>Go to changes</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>i</kbd> </td> <td>Go to issues</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>d</kbd> </td> <td>Go to dist</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>r</kbd> </td> <td>Go to repository/SCM</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>s</kbd> </td> <td>Go to source</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>b</kbd> </td> <td>Go to file browse</td> </tr> </tbody> </table> </div> <div class="col-md-12"> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>Search terms</th> </tr> </thead> <tbody> <tr> <td><em>module:</em> (e.g. <a href="/search?q=module%3APlugin">module:Plugin</a>)</td> </tr> <tr> <td><em>distribution:</em> (e.g. <a href="/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td> </tr> <tr> <td><em>author:</em> (e.g. <a href="/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td> </tr> <tr> <td><em>version:</em> (e.g. <a href="/search?q=version%3A1.00">version:1.00</a>)</td> </tr> </tbody> </table> </div> </div> <div class="modal-footer"></div> </div> </div> </div> </body> </html>