X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=templates%2Fperl_script;h=8a2a2d4749b5f539cfc548e4127ae858a956d33f;hb=bc8ab5fa2e2107be64a9d0399b603607731caac5;hp=05509d74b6438d5e1193388b65a848f1c5ea7c57;hpb=b8afffb79ed17914430e54d02069bef45adcabaa;p=lib.git diff --git a/templates/perl_script b/templates/perl_script index 05509d7..8a2a2d4 100755 --- a/templates/perl_script +++ b/templates/perl_script @@ -3,7 +3,7 @@ # 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 . +# Copyright 2017 by Don Armstrong . use warnings; @@ -18,12 +18,12 @@ SCRIPTNAME - DOES_SOMETHING =head1 SYNOPSIS -SCRIPT_NAME [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 @@ -53,12 +53,12 @@ SCRIPTNAME 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}; @@ -67,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; @@ -76,3 +76,7 @@ pod2usage(join("\n",@USAGE_ERRORS)) if @USAGE_ERRORS; __END__ +# Local Variables: +# indent-tabs-mode: nil +# cperl-indent-level: 4 +# End: