From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

App::Perl::Module::CopyrightYears - Base class for perl-module-copyright-years tool.

SYNOPSIS

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

METHODS

new

my $app = App::Perl::Module::CopyrightYears->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;
# Arguments.
@ARGV = (
'-h',
);
# Run.
exit App::Perl::Module::CopyrightYears->new->run;
# Output like:
# Usage: ./print_help.pl [-d] [-h] [-s section(s)] [-y last_year] [--version]
# -d Debug mode.
# -h Print help.
# -s section(s) Section(s) to look (default is LICENSE AND COPYRIGHT)
# -y last_year Last year (default value is actual year)
# --version Print version.

DEPENDENCIES

Class::Utils, File::Find::Rule, File::Spec::Functions, Getopt::Std, IO::Barf, Pod::CopyrightYears, Perl6::Slurp, String::UpdateYears.

REPOSITORY

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

AUTHOR

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

http://skim.cz

LICENSE AND COPYRIGHT

© 2023-2025 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.05