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

📄 ch07.001_best_ex7.1

📁 Perl Best Practices the source code
💻 1
字号:
################################################################################    Example 7.1 (Recommended) from Chapter 7 of "Perl Best Practices"     ####     Copyright (c) O'Reilly & Associates, 2005. All Rights Reserved.      ####  See: http://www.oreilly.com/pub/a/oreilly/ask_tim/2001/codepolicy.html  #################################################################################  Example 7-1. User documentation template for modules=head1 NAME <Module::Name> - <One line description of module's purpose>  =head1 VERSION The initial template usually just has: This documentation refers to <Module::Name> version 0.0.1  =head1 SYNOPSIS     use <Module::Name>;    # Brief but working code example(s) here showing the most common usage(s)     # This section will be as far as many users bother reading    # so make it as educational and exemplary as possible.    =head1 DESCRIPTION A full description of the module and its features.May include numerous subsections (i.e. =head2, =head3, etc.)   =head1 SUBROUTINES/METHODS  A separate section listing the public components of the module's interface. These normally consist of either subroutines that may be exported, or methodsthat may be called on objects belonging to the classes that the module provides.Name the section accordingly. In an object-oriented module, this section should begin with a sentence of the form "An object of this class represents...", to give the reader a high-levelcontext to help them understand the methods that are subsequently described.  =head1 DIAGNOSTICS A list of every error and warning message that the module can generate(even the ones that will "never happen"), with a full explanation of each problem, one or more likely causes, and any suggested remedies.(See also  QUOTE \" " INCLUDETEXT "13_ErrorHandling" "XREF83683_Documenting_Errors_"\! Documenting Errors QUOTE \" " QUOTE " in Chapter "  in Chapter  INCLUDETEXT "13_ErrorHandling" "XREF40477__"\! 13.)  =head1 CONFIGURATION AND ENVIRONMENT A full explanation of any configuration system(s) used by the module,including the names and locations of any configuration files, and themeaning of any environment variables or properties that can be set. Thesedescriptions must also include details of any configuration language used.(also see  QUOTE \" " INCLUDETEXT "19_Miscellanea" "XREF40334_Configuration_Files_"\! Configuration Files QUOTE \" " QUOTE " in Chapter "  in Chapter  INCLUDETEXT "19_Miscellanea" "XREF55683__"\! 19.)  =head1 DEPENDENCIES A list of all the other modules that this module relies upon, including anyrestrictions on versions, and an indication whether these required modules arepart of the standard Perl distribution, part of the module's distribution,or must be installed separately.  =head1 INCOMPATIBILITIES A list of any modules that this module cannot be used in conjunction with.This may be due to name conflicts in the interface, or competition for system or program resources, or due to internal limitations of Perl (for example, many modules that use source code filters are mutually incompatible).  =head1 BUGS AND LIMITATIONS A list of known problems with the module, together with some indicationwhether they are likely to be fixed in an upcoming release. Also a list of restrictions on the features the module does provide: data types that cannot be handled, performance issues and the circumstancesin which they may arise, practical limitations on the size of data sets, special cases that are not (yet) handled, etc. The initial template usually just has: There are no known bugs in this module. Please report problems to <Maintainer name(s)>  (<contact address>)Patches are welcome. =head1 AUTHOR <Author name(s)>  (<contact address>)  =head1 LICENCE AND COPYRIGHT Copyright (c) <year> <copyright holder> (<contact address>). All rights reserved. Followed by whatever licence you wish to release it under. For Perl code that is often just: This module is free software; you can redistribute it and/ormodify it under the same terms as Perl itself. See L<perlartistic>. This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -