⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch08_01.htm

📁 by Randal L. Schwartz and Tom Phoenix ISBN 0-596-00132-0 Third Edition, published July 2001. (See
💻 HTM
📖 第 1 页 / 共 3 页
字号:
</tr><tr><td><p>Net::netent</p></td><td><p>By-name interface to Perl's built-in<tt class="literal">getnet*</tt> functions</p></td></tr><tr><td><p>Net::Netrc</p></td><td><p>OO interface to user's netrc file (new in 5.8)</p></td></tr><tr><td><p>Net::NNTP</p></td><td><p>NNTP Client class (new in 5.8)</p></td></tr><tr><td><p>Net::Ping</p></td><td><p>Checks whether a host is online</p></td></tr><tr><td><p>Net::POP3	</p></td><td><p>Post Office Protocol 3 Client class (new in 5.8)</p></td></tr><tr><td><p>Net::protoent</p></td><td><p>By-name interface to Perl's built-in<tt class="literal">getproto*</tt> functions</p></td></tr><tr><td><p>Net::servent</p></td><td><p>By-name interface to Perl's built-in<tt class="literal">getserv*</tt> functions</p></td></tr><tr><td><p>Net::SMTP</p></td><td><p>Simple Mail Transfer Protocol Client class (new in 5.8)</p></td></tr><tr><td><p>Net::Time</p></td><td><p>Time and daytime network client interface (new in 5.8)</p></td></tr><tr><td><p>ODBM_File</p></td><td><p>Tied access to ODBM files</p></td></tr><tr><td><p>Opcode</p></td><td><p>Disables named opcodes when compiling Perl code</p></td></tr><tr><td><p>ops</p></td><td><p>Restricts unsafe operations when compiling</p></td></tr><tr><td><p>overload</p></td><td><p>Overloads Perl's mathematical operations</p></td></tr><tr><td><p>PerlIO</p></td><td><p>On-demand loader for PerlIO layers and root of PerlIO::* namespace(added in 5.8)</p></td></tr><tr><td><p>PerlIO::Scalar</p></td><td><p>Support module for in-memory I/O (new in 5.8)</p></td></tr><tr><td><p>PerlIO::Via</p></td><td><p>Helper class for PerlIO layers implemented in Perl (new in 5.8)</p></td></tr><tr><td><p>Pod::Functions</p></td><td><p>Used in converting from pod to HTML</p></td></tr><tr><td><p>Pod::Html</p></td><td><p>Module to convert pod files to HTML</p></td></tr><tr><td><p>Pod::ParseLink</p></td><td><p>Parses link-formatting code in POD documents (new in 5.8)</p></td></tr><tr><td><p>Pod::Text</p></td><td><p>Converts pod data to formatted ASCII text</p></td></tr><tr><td><p>POSIX</p></td><td><p>Perl interface to IEEE Std 1003.1</p></td></tr><tr><td><p>re</p></td><td><p>Perl pragma to alter regular expression behavior</p></td></tr><tr><td><p>Safe</p></td><td><p>Creates safe namespaces for evaluating Perl code</p></td></tr><tr><td><p>Scalar::Util</p></td><td><p>A selection of general-utility scalar subroutines (new in 5.8)</p></td></tr><tr><td><p>SDBM_File</p></td><td><p>Tied access to SDBM files</p></td></tr><tr><td><p>Search::Dict</p></td><td><p>Searches for key in dictionary file</p></td></tr><tr><td><p>SelectSaver</p></td><td><p>Saves and restores selected filehandle</p></td></tr><tr><td><p>SelfLoader</p></td><td><p>Loads functions only on demand</p></td></tr><tr><td><p>Shell</p></td><td><p>Runs shell commands transparently within Perl</p></td></tr><tr><td><p>sigtrap</p></td><td><p>Enables stack backtrace on unexpected signals</p></td></tr><tr><td><p>Socket</p></td><td><p>Loads the C <em class="emphasis">socket.h</em> defines and structuremanipulators</p></td></tr><tr><td><p>sort</p></td><td><p>Perl pragma that controls sort behavior (new in 5.8)</p></td></tr><tr><td><p>Storable</p></td><td><p>Persistence for Perl data structures (new in 5.8)</p></td></tr><tr><td><p>strict</p></td><td><p>Restricts unsafe constructs</p></td></tr><tr><td><p>subs</p></td><td><p>Predeclares subroutine names</p></td></tr><tr><td><p>Switch</p></td><td><p>A switch statement for Perl (new in 5.8)</p></td></tr><tr><td><p>Symbol</p></td><td><p>Generates anonymous globs; qualifies variable names</p></td></tr><tr><td><p>Sys::Hostname</p></td><td><p>Tries every conceivable way to get hostname</p></td></tr><tr><td><p>Sys::Syslog</p></td><td><p>Perl interface to Unix <tt class="literal">syslog(3)</tt> calls</p></td></tr><tr><td><p>Term::Cap</p></td><td><p>Terminal capabilities interface</p></td></tr><tr><td><p>Term::Complete</p></td><td><p>Word completion module</p></td></tr><tr><td><p>Term::ReadLine</p></td><td><p>Interface to various ReadLine packages</p></td></tr><tr><td><p>Test</p></td><td><p>Framework for writing test scripts</p></td></tr><tr><td><p>Test::Builder</p></td><td><p>Backend for building text libraries (new in 5.8)</p></td></tr><tr><td><p>Test::Harness</p></td><td><p>Runs Perl standard test scripts with statistics</p></td></tr><tr><td><p>Test::More</p></td><td><p>Yet another framework for writing test scripts (new in 5.8)</p></td></tr><tr><td><p>Test::Simple</p></td><td><p>Basic utilities for writing tests (new in 5.8)</p></td></tr><tr><td><p>Text::Abbrev</p></td><td><p>Creates an abbreviation table from a list</p></td></tr><tr><td><p>Text::Balanced</p></td><td><p>Extracts delimited text sequences from strings (new in 5.8)</p></td></tr><tr><td><p>Text::ParseWords</p></td><td><p>Parses text into a list of tokens</p></td></tr><tr><td><p>Text::Soundex</p></td><td><p>The soundex algorithm described by Knuth</p></td></tr><tr><td><p>Text::Tabs</p></td><td><p>Expands and unexpands tabs</p></td></tr><tr><td><p>Text::Wrap</p></td><td><p>Wraps text into a paragraph</p></td></tr><tr><td><p>Thread</p></td><td><p>Multithreading support</p></td></tr><tr><td><p>Thread::Queue</p></td><td><p>Thread-safe queues</p></td></tr><tr><td><p>Thread::Semaphore</p></td><td><p>Thread-safe semaphores</p></td></tr><tr><td><p>Thread::Signal</p></td><td><p>Starts a thread that runs signal handlers reliably</p></td></tr><tr><td><p>Thread::Specific</p></td><td><p>Thread-specific keys</p></td></tr><tr><td><p>Tie::Array</p></td><td><p>Base class definitions for tied arrays</p></td></tr><tr><td><p>Tie::File</p></td><td><p>Accesses the lines of a disk file via a Perl array (new in 5.8)</p></td></tr><tr><td><p>Tie::Handle</p></td><td><p>Base class definitions for tied handles</p></td></tr><tr><td><p>Tie::Hash</p></td><td><p>Base class definitions for tied hashes</p></td></tr><tr><td><p>Tie::Memorize</p></td><td><p>Adds data to a hash when needed (new in 5.8)</p></td></tr><tr><td><p>Tie::RefHash</p></td><td><p>Uses references as hash keys</p></td></tr><tr><td><p>Tie::Scalar</p></td><td><p>Base class definitions for tied scalars</p></td></tr><tr><td><p>Tie::SubstrHash</p></td><td><p>Fixed table size, fixed key length hashing</p></td></tr><tr><td><p>Time::gmtime</p></td><td><p>By-name interface to Perl's built-in<tt class="literal">gmtime</tt> function</p></td></tr><tr><td><p>Time::HiRes</p></td><td><p>High-resolution alarm, sleep, gettimeofday, interval timers (new in5.8)</p></td></tr><tr><td><p>Time::Local</p></td><td><p>Computes time from local and GMT time</p></td></tr><tr><td><p>Time::localtime</p></td><td><p>By-name interface to Perl's built-in<tt class="literal">localtime</tt> function</p></td></tr><tr><td><p>Time::tm</p></td><td><p>Internal object used by Time::gmtime and Time::localtime</p></td></tr><tr><td><p>UNIVERSAL</p></td><td><p>Base class for all classes (blessed references)</p></td></tr><tr><td><p>User::grent</p></td><td><p>By-name interface to Perl's built-in<tt class="literal">getgr*</tt> functions</p></td></tr><tr><td><p>User::pwent</p></td><td><p>By-name interface to Perl's built-in<tt class="literal">getpw*</tt> functions</p></td></tr><tr><td><p>utf8</p></td><td><p>Perl pragma to enable/disable UTF-8 in source code</p></td></tr><tr><td><p>vars</p></td><td><p>Predeclares global variable names</p></td></tr><tr><td><p>vmsish</p></td><td><p>Perl pragma that controls VMS-specific language features (new in 5.8)</p></td></tr><tr><td><p>XS::Typemap</p></td><td><p>Module that tests the XS typemaps distributed with Perl (new in5.8)<a name="INDEX-1266" /></a></p></td></tr></table><p><p>In the remainder of this chapter, the modules are arranged inalphabetical order for easy reference. For more detail about amodule, use the<em class="emphasis">perldoc</em><a name="INDEX-1267" /></a> command to read the manpage for thatmodule (see <a href="ch04_01.htm">Chapter 4, "The Perl Language"</a> for information on<em class="emphasis">perldoc</em>).</p><div class="sect1"><a name="perlnut2-CHP-8-SECT-1" /></a><h2 class="sect1">8.1. AnyDBM_File</h2><p><a name="INDEX-1268" /></a>Providesa single Database Manager (DBM) interface regardless of the DBMimplementation you use. The module inherits from the various DBMpackages; by default, it inherits from NDBM_File. If itdoesn't find NDBM_File, the default search order is:DB_File, GDBM_File, SDBM_File (which comes with Perl), and finally,ODBM_File. You can override this default order by redefining<tt class="literal">@ISA</tt>:</p><blockquote><pre class="code">@AnyDBM_File::ISA = qw(DB_File GDBM_File NDBM_File);</pre></blockquote><p>However, an explicit <tt class="literal">use</tt> takes priority over the<tt class="literal">@ISA</tt> ordering.</p><p>Perl's <tt class="literal">dbmopen</tt> function simplycalls <tt class="literal">tie</tt> to bind a hash to AnyDBM_File. Theeffect is to bind the hash to one of the specific DBM classes thatAnyDBM_File inherits from.</p></div><hr width="684" align="left" /><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch07_04.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="ch08_02.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr><tr><td align="left" valign="top" width="228">7.4. Object Syntax</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">8.2. Attribute::Handlers</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 &copy; 2002</a> O'Reilly &amp; 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 + -