X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=templates%2Fperl_script;h=845afc8ae39f8173e5d3f13cbb36e0eaf9a62abc;hb=6b16ff5c2f488d5291794bc7b906f25c65eb8f53;hp=fd9af75337a1e68390966b84eea09d48587acf1f;hpb=4f55bccfccad5503e0a2f3d53714eb0503b33a97;p=lib.git diff --git a/templates/perl_script b/templates/perl_script index fd9af75..845afc8 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 2008 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 2016 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 + --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;