NAME

App::Perl::Module::Examples - Base class for perl-module-examples script.

SYNOPSIS

use App::Perl::Module::Examples;

my $app = App::Perl::Module::Examples->new;
my $exit_code = $app->run;

METHODS

new

my $app = App::Perl::Module::Examples->new;

Constructor.

Returns instance of object.

run

my $exit_code = $app->run;

Run.

Returns 1 for error, 0 for success.

ERRORS

new():
        From Class::Utils::set_params():
                Unknown parameter '%s'.

EXAMPLE

use strict;
use warnings;

use App::Perl::Module::Examples;

# Arguments.
@ARGV = (
        '-h',
);

# Run.
exit App::Perl::Module::Examples->new->run;

# Output like:
# Usage: ./print_help.pl [-d] [-h] [--version]
#         -d              Debug mode.
#         -h              Print help.
#         --version       Print version.

DEPENDENCIES

Class::Utils, File::Find::Rule, File::Spec::Functions, Getopt::Std, IO::Barf, Pod::Example.

REPOSITORY

https://github.com/michal-josef-spacek/App-Perl-Module-Examples

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2012-2024 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.03