NAME

Toolforge::MixNMatch::Print::YearMonth - Mix'n'match year/month structure print.

SYNOPSIS

use Toolforge::MixNMatch::Print::YearMonth qw(print);

my $print = print($obj);

SUBROUTINES

print

my $print = print($obj);

Print Toolforge::MixNMatch::Object::YearMonth instance to user output.

Returns string.

ERRORS

obj2struct():
        Object doesn't exist.
        Object isn't 'Toolforge::MixNMatch::Object::YearMonth'.

EXAMPLE

use strict;
use warnings;

use Data::Printer;
use Toolforge::MixNMatch::Object::YearMonth;
use Toolforge::MixNMatch::Print::YearMonth;

# Object.
my $obj = Toolforge::MixNMatch::Object::YearMonth->new(
        'count' => 6,
        'month' => 9,
        'year' => 2020,
);

# Print.
print Toolforge::MixNMatch::Print::YearMonth::print($obj)."\n";

# Output:
# 2020/9: 6

DEPENDENCIES

Error::Pure.

SEE ALSO

Toolforge::MixNMatch::Print

Toolforge Mix'n'match tool object print routines.

REPOSITORY

https://github.com/michal-josef-spacek/Toolforge-MixNMatch-Print

AUTHOR

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

http://skim.cz

LICENSE AND COPYRIGHT

© Michal Josef Špaček 2020

BSD 2-Clause License

VERSION

0.04