-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodulino_template.pm
More file actions
53 lines (35 loc) · 915 Bytes
/
modulino_template.pm
File metadata and controls
53 lines (35 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env perl
package modulino_template;
use strict;
use warnings;
use Getopt::Long qw( GetOptionsFromArray );
use Pod::Usage;
sub main {
my ( $argv ) = @_;
my %opt;
GetOptionsFromArray( $argv, \%opt,
### Your options here
'help|h',
);
pod2usage(0) if $opt{help};
### Your code here
return 0;
}
exit main( \@ARGV ) unless caller(0);
1;
=head1 NAME
modulino_template.pm - Do something!
=head1 SYNOPSIS
perl modulino_template.pm [--option <option_argument>] <argument>
perl modulino_template.pm -h|--help
=head1 ARGUMENTS
=head2 argument
A description of the argument.
=head1 OPTIONS
=head2 option <option_argument>
A description of the option.
=head2 help|h
Display help and usage
=head1 LICENSE AND COPYRIGHT
Copyright 2013 Your Name <your_name@example.com>
This software may be used and redistributed under the same terms as Perl itself.