|
NAMEModule::Starter::PBP - Create a module as recommended in "Perl Best Practices"VERSIONThis document describes Module::Starter::PBP version 0.0.3SYNOPSIS# In your ~/.module-starter/config file... author: <Your Name> email: <your@email.addr> plugins: Module::Starter::PBP template_dir: </some/absolute/path/name> # Then on the command-line... > module-starter --module=Your::New::Module # Or, if you're lazy and happy to go with # the recommendations in "Perl Best Practices"... > perl -MModule::Starter::PBP=setup DESCRIPTIONThis module implements a simple approach to creating modules and their support files, based on the Module::Starter approach. Module::Starter needs to be installed before this module can be used.When used as a Module::Starter plugin, this module allows you to specify a simple directory of templates which are filled in with module-specific information, and thereafter form the basis of your new module. The default templates that this module initially provides are based on the recommendations in the book "Perl Best Practices". INTERFACEThsi module simply acts as a plugin for Module::Starter. So it uses the same command-line interface as that module.The template files it is to use are specified in your Module::Starter "config" file, by adding a "template_dir" configuration variable that gives the full path name of the directory in which you want to put the templates. The easiest way to set up this "config" file, the associated directory, and the necessary template files is to type: > perl -MModule::Starter::PBP=setup on the command line. You will then be asked for your name, email address, and the full path name of the directory where you want to keep the templates, after which they will be created and installed. Then you can create a new module by typing: > module-starter --module=Your::New::Module Template formatThe templates are plain files named:Build.PL Makefile.PL README Changes Module.pm t/whatever_you_like.t The "Module.pm" file is the template for the ".pm" file for your module. Any files in the "t/" subdirectory become the templates for the testing files of your module. All the remaining files are templates for the ditribution files of the same names. In those files, the following placeholders are replaced by the appropriate information specific to the file:
DIAGNOSTICS
CONFIGURATION AND ENVIRONMENTSee the documentation for "Module::Starter" and "module-starter".DEPENDENCIESRequires the "Module::Starter" module.INCOMPATIBILITIESNone reported.BUGS AND LIMITATIONSNo bugs have been reported.Please report any bugs or feature requests to "bug-module-starter-pbp@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. AUTHORDamian Conway "<DCONWAY@cpan.org>"LICENCE AND COPYRIGHTCopyright (c) 2005, Damian Conway "<DCONWAY@cpan.org>". All rights reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTYBECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Visit the GSP FreeBSD Man Page Interface. |