NAME
example.pl - Example of Getopt::Type::Tiny
VERSION
version 0.02
SYNOPSIS
use Getopt::Type::Tiny qw(get_opts Str Int);
my %opts = get_opts(
foo => { isa => Str },
bar => { isa => Int, default => 42 },
'verbose|v', # defaults to Bool
);
# %opts now contains the parsed options:
# (
# foo => 'value of foo',
# bar => 42,
# verbose => 1,
# )
DESCRIPTION
This is a simple example of how to use Getopt::Type::Tiny to parse command line options;
FUNCTIONS
No functions;
AUTHOR
Curtis "Ovid" Poe <curtis.poe@gmail.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2025 by Curtis "Ovid" Poe.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)