X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=templates%2Fperl_script;h=e9fdf1d4dee2274c8a7d07dc324d0161937f12e4;hb=8fa7a55e021030e967382eab349aebc7dc6cc51f;hp=58855a5f78339e7504ec2d467e53944b6baa520a;hpb=9e33ac78142000c76d8c63e7568a325dac0eece9;p=lib.git diff --git a/templates/perl_script b/templates/perl_script index 58855a5..e9fdf1d 100755 --- a/templates/perl_script +++ b/templates/perl_script @@ -1,9 +1,9 @@ -#! /usr/bin/perl -# , and is released -# under the terms of the GPL version 2, or any later version, at your -# option. See the file README and COPYING for more information. -# Copyright 2011 by Don Armstrong . -# $Id$ +#!/usr/bin/perl +# SCRIPTNAME DOES_SOMETHING +# and is released under the terms of the GNU GPL version 3, or any +# later version, at your option. See the file README and COPYING for +# more information. +# Copyright 2013 by Don Armstrong . use warnings; @@ -14,16 +14,16 @@ use Pod::Usage; =head1 NAME - - +SCRIPTNAME - DOES_SOMETHING =head1 SYNOPSIS - [options] +SCRIPTNAME [options] - Options: - --debug, -d debugging level (Default 0) - --help, -h display this help - --man, -m display manual +Options: + --debug, -d debugging level (Default 0) + --help, -h display this help + --man, -m display manual =head1 OPTIONS @@ -45,6 +45,7 @@ Display this manual. =head1 EXAMPLES +SCRIPTNAME =cut @@ -52,12 +53,12 @@ Display this manual. use vars qw($DEBUG); my %options = (debug => 0, - help => 0, - man => 0, - ); + help => 0, + man => 0, + ); GetOptions(\%options, - 'debug|d+','help|h|?','man|m'); + 'debug|d+','help|h|?','man|m'); pod2usage() if $options{help}; pod2usage({verbose=>2}) if $options{man}; @@ -66,7 +67,7 @@ $DEBUG = $options{debug}; my @USAGE_ERRORS; if (1) { - push @USAGE_ERRORS,"You must pass something"; + push @USAGE_ERRORS,"You must pass something"; } pod2usage(join("\n",@USAGE_ERRORS)) if @USAGE_ERRORS;