IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 12, 2004, 11:53:55 AM (22 years ago)
Author:
jhoblitt
Message:

add stand alone Pod format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/misc/perlCodeConventions.tex

    r2349 r2350  
    1 %%% $Id: perlCodeConventions.tex,v 1.6 2004-11-12 21:14:27 jhoblitt Exp $
     1%%% $Id: perlCodeConventions.tex,v 1.7 2004-11-12 21:53:55 jhoblitt Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    2828\begin{tabular}{|p{1in}|p{2.75in}|p{2.75in}|}
    2929\hline
     30%%% References here.
    3031\textbf{\PS{} ID} & \textbf{Title} & \textbf{Author} \\
    3132430-004 &Pan-STARRS IPP C Code Standards    &Robert Lupton\\
    32 \hline
    33 %%% References here.
    3433\hline
    3534\end{tabular}
     
    166165# Copyright (C) 2004  Joshua Hoblitt
    167166#
    168 # $Id: perlCodeConventions.tex,v 1.6 2004-11-12 21:14:27 jhoblitt Exp $
     167# $Id: perlCodeConventions.tex,v 1.7 2004-11-12 21:53:55 jhoblitt Exp $
    169168
    170169use 5.008005;   # optional
     
    223222# Copyright (C) 2004  Joshua Hoblitt
    224223#
    225 # $Id: perlCodeConventions.tex,v 1.6 2004-11-12 21:14:27 jhoblitt Exp $
     224# $Id: perlCodeConventions.tex,v 1.7 2004-11-12 21:53:55 jhoblitt Exp $
    226225
    227226package Foo;
     
    247246
    248247\subsubsection{Perl Documentation}
     248
     249In most cases documentation should be included as in line Pod within a
     250\code{.pl} file.  If a piece of stand alone documentation is required this is
     251the general format that it should follow:
     252
     253\begin{verbatim}
     254=pod
     255
     256=head1 NAME
     257
     258Foo - Does something with Baz.
     259
     260=head1 SYNOPSIS
     261
     262    use Foo;
     263
     264    ...
     265
     266=head1 DESCRIPTION
     267
     268More details about what this modules does with Baz.
     269
     270=head1 USAGE
     271
     272=head2 Import Parameters
     273
     274This module accepts no arguments to it's C<import> method and exports no
     275I<symbols>.
     276
     277=head2 Methods
     278
     279=head3 Class Methods
     280
     281=over 4
     282
     283=item * methodOne
     284
     285details of methodOne
     286
     287=item * methodTwo
     288
     289details of methodTwo
     290
     291...
     292
     293=back
     294
     295=head1 SUPPORT
     296
     297Where to get help.
     298
     299=head1 AUTHOR
     300
     301Principle authors and contact info.
     302
     303=head1 COPYRIGHT
     304
     305Copyright (C) 2004  Robert Lupton.  All rights reserved.
     306
     307This program is free software; you can redistribute it and/or modify it under
     308the terms of the GNU General Public License as published by the Free Software
     309Foundation; either version 2 of the License, or (at your option) any later
     310version.
     311
     312This program is distributed in the hope that it will be useful, but WITHOUT ANY
     313WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     314PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     315
     316You should have received a copy of the GNU General Public License along with
     317this program; if not, write to the Free Software Foundation, Inc., 59 Temple
     318Place - Suite 330, Boston, MA  02111-1307, USA.
     319
     320The full text of the license can be found in the LICENSE file included with
     321this module, or in the L<perlgpl> Pod as supplied with Perl 5.8.1 and later.
     322
     323=head1 SEE ALSO
     324
     325L<Bar::Baz>
     326
     327=cut
     328\end{verbatim}
    249329
    250330%------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.