IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2409


Ignore:
Timestamp:
Nov 23, 2004, 1:20:38 PM (22 years ago)
Author:
jhoblitt
Message:

allow $VERSION in scripts

Location:
trunk/doc/misc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/misc/foo.pl

    r2398 r2409  
    99use strict;                             # not optional
    1010use warnings;                           # not optional
     11
     12our $VERSION = '0.01';                  # optional - handy with Getopt::Long
    1113
    1214use Foo qw( $bar );                     # import $bar into our namespace
  • trunk/doc/misc/perlCodeConventions.tex

    r2408 r2409  
    1 %%% $Id: perlCodeConventions.tex,v 1.30 2004-11-23 23:16:18 jhoblitt Exp $
     1%%% $Id: perlCodeConventions.tex,v 1.31 2004-11-23 23:20:38 jhoblitt Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    163163A \code{use strict} and \code{use warnings} declaration.
    164164
     165\item
     166An optional \code{$VERSION} declaration.  This is useful with
     167\code{Getopt::Long}'s \code{auto_version} feature.
     168
    165169\item
    166170Any modules to include.
     
    211215
    212216\item
    213 A module \code{VERSION} declaration.
     217A \code{$VERSION} declaration.
    214218
    215219\item
Note: See TracChangeset for help on using the changeset viewer.