📄 ch02_02.htm
字号:
<html><head><title>How Is CPAN Organized? (Perl in a Nutshell, 2nd Edition)</title><link rel="stylesheet" type="text/css" href="../style/style1.css" /><meta name="DC.Creator" content="Stephen Spainhour" /><meta name="DC.Format" content="text/xml" scheme="MIME" /><meta name="DC.Language" content="en-US" /><meta name="DC.Publisher" content="O'Reilly & Associates, Inc." /><meta name="DC.Source" scheme="ISBN" content="0596002416L" /><meta name="DC.Subject.Keyword" content="stuff" /><meta name="DC.Title" content="Perl in a Nutshell, 2nd Edition" /><meta name="DC.Type" content="Text.Monograph" /></head><body bgcolor="#ffffff"><img src="gifs/smbanner.gif" usemap="#banner-map" border="0" alt="Book Home" /><map name="banner-map"><area shape="rect" coords="1,-2,616,66" href="index.htm" alt="Java and XSLT" /><area shape="rect" coords="629,-11,726,25" href="jobjects/fsearch.htm" alt="Search this book" /></map><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch02_01.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td align="center" valign="top" width="228" /><td align="right" valign="top" width="228"><a href="ch02_03.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr></table></div><h2 class="sect1">2.2. How Is CPAN Organized?</h2><p>CPAN materials are grouped into categories, including Perl modules,distributions, documentation, announcements, ports, scripts, andcontributing authors. Each category is linked to related categories.For example, links to a graphing module written by an author appearin both the module and the author areas.</p><p>Since CPAN provides the same offerings worldwide, the directorystructure has been standardized; files are located in the same placein the directory hierarchy at all CPAN sites. All CPAN sites use<em class="emphasis">CPAN</em> as the root directory, from which the usercan select a specific Perl item. From the <em class="emphasis">CPAN</em>directory, you have the following choices:</p><a name="ch02-2-fm2xml" /><table border="1" cellpadding="3"><tr><th><p>Item</p></th><th><p>Description</p></th></tr><tr><td><p>CPAN.html</p></td><td><p>CPAN info page; some general information about CPAN</p></td></tr><tr><td><p>ENDINGS</p></td><td><p>Description of the file extensions, such as<em class="filename">.tar</em>,<em class="filename"> .gz</em>, and<em class="filename">.zip</em></p></td></tr><tr><td><p>MIRRORED BY</p></td><td><p>A list of sites mirroring CPAN</p></td></tr><tr><td><p>MIRRORING.FROM</p></td><td><p>A list of sites mirrored by CPAN</p></td></tr><tr><td><p>README</p></td><td><p>A brief description of what you'll find on CPAN</p></td></tr><tr><td><p>README.html</p></td><td><p>An HTML-formatted version of the README file</p></td></tr><tr><td><p>RECENT</p></td><td><p>Recent additions to the CPAN site</p></td></tr><tr><td><p>RECENT.html</p></td><td><p>An HTML-formatted list of recent additions</p></td></tr><tr><td><p>ROADMAP</p></td><td><p>What you'll find on CPAN and where</p></td></tr><tr><td><p>ROADMAP.html</p></td><td><p>An HTML-formatted version of ROADMAP</p></td></tr><tr><td><p>SITES</p></td><td><p>An exhaustive list of CPAN sites</p></td></tr><tr><td><p>SITES.html</p></td><td><p>An HTML-formatted version of SITES</p></td></tr><tr><td><p>authors</p></td><td><p>A list of CPAN authors</p></td></tr><tr><td><p>clpa</p></td><td><p>An archive of comp.land.perl.announce</p></td></tr><tr><td><p>disclaimer.html </p></td><td><p>Before you call your lawyer, read these details about CPAN content</p></td></tr><tr><td><p>doc</p></td><td><p>Various Perl documentation, FAQs, etc.</p></td></tr><tr><td><p>index.html</p></td><td><p>CPAN starting point in you prefer to browse CPAN from the web insteadof FTP</p></td></tr><tr><td><p>indices</p></td><td><p>Everything that is indexed</p></td></tr><tr><td><p>misc</p></td><td><p>Miscellaneous Perl stuff such as Larry Wall quotes and gifts</p></td></tr><tr><td><p>modules</p></td><td><p>Modules for Perl Version 5</p></td></tr><tr><td><p>other-archives</p></td><td><p>Other things yet uncategorized</p></td></tr><tr><td><p>ports</p></td><td><p>Various Perl ports</p></td></tr><tr><td><p>scripts</p></td><td><p>Various scripts appearing in Perl books</p></td></tr><tr><td><p>src</p></td><td><p>The Perl sources from various versions</p></td></tr></table><p><p>While most people who want to use Perl for Win32 should useActivePerl from <a href="http://www.activestate.com">www.activestate.com</a>, if you wantto roll your own, you can get the current Perl source kit from the<em class="emphasis">src</em> directory and click on<em class="emphasis">stable.tar.gz</em> (or<em class="emphasis">stable.zip</em>, if you're buildingunder Win32). If you want to stand on the cutting edge of Perldevelopment, you should download <em class="emphasis">devel.tar.gz</em>(or <em class="emphasis">devel.zip</em>, if you'rebuilding under Win32). For ports to other systems, click on<em class="emphasis">ports</em>. The <em class="emphasis">modules</em> link isthe one you <a name="INDEX-39" /><a name="INDEX-40" /><a name="INDEX-41" />want if you're lookingfor a Perl module. From there, you can get a full list of the modulesor access the modules directly by author, by CPAN category, or bymodule name. (<a href="ch02_04.htm#perlnut2-CHP-2-SECT-4">Section 2.4, "Getting and Installing Modules"</a> later in this chapter talksabout installing modules.) Click on <em class="emphasis">doc</em> for Perldocumentation, FAQs, etc.</p><hr width="684" align="left" /><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch02_01.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td align="center" valign="top" width="228"><a href="index.htm"><img src="../gifs/txthome.gif" alt="Home" border="0" /></a></td><td align="right" valign="top" width="228"><a href="ch02_03.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr><tr><td align="left" valign="top" width="228">2. Installing Perl</td><td align="center" valign="top" width="228"><a href="index/index.htm"><img src="../gifs/index.gif" alt="Book Index" border="0" /></a></td><td align="right" valign="top" width="228">2.3. Installing Perl</td></tr></table></div><hr width="684" align="left" /><img src="../gifs/navbar.gif" usemap="#library-map" border="0" alt="Library Navigation Links" /><p><p><font size="-1"><a href="copyrght.htm">Copyright © 2002</a> O'Reilly & Associates. All rights reserved.</font></p><map name="library-map"><area shape="rect" coords="1,0,85,94" href="../index.htm"><area shape="rect" coords="86,1,178,103" href="../lwp/index.htm"><area shape="rect" coords="180,0,265,103" href="../lperl/index.htm"><area shape="rect" coords="267,0,353,105" href="../perlnut/index.htm"><area shape="rect" coords="354,1,446,115" href="../prog/index.htm"><area shape="rect" coords="448,0,526,132" href="../tk/index.htm"><area shape="rect" coords="528,1,615,119" href="../cookbook/index.htm"><area shape="rect" coords="617,0,690,135" href="../pxml/index.htm"></map></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -