NAME
Data::Object::Hash::Func::EachNValues
ABSTRACT
Data-Object Hash Function (EachNValues) Class
SYNOPSIS
use Data::Object::Hash::Func::EachNValues;
my $func = Data::Object::Hash::Func::EachNValues->new(@args);
$func->execute;
DESCRIPTION
Data::Object::Hash::Func::EachNValues is a function object for Data::Object::Hash.
INHERITANCE
This package inherits behaviors from:
LIBRARIES
This package uses type constraints defined by:
ATTRIBUTES
This package has the following attributes.
arg1
arg1(Object)
The attribute is read-only, accepts (Object)
values, and is optional.
arg2
arg2(NumberLike)
The attribute is read-only, accepts (NumberLike)
values, and is optional.
arg3
arg3(CodeLike)
The attribute is read-only, accepts (CodeLike)
values, and is optional.
args
args(ArrayRef[Any])
The attribute is read-only, accepts (ArrayRef[Any])
values, and is optional.
METHODS
This package implements the following methods.
execute
execute() : Object
Executes the function logic and returns the result.
- execute example
-
my $data = Data::Object::Hash->new({1..8,9,undef}); my $sets = []; my $func = Data::Object::Hash::Func::EachNValues->new( arg1 => $data, arg2 => 2, arg3 => sub { push @$sets, [@_] } ); my $result = $func->execute;
mapping
mapping() : (Str)
Returns the ordered list of named function object arguments.
CREDITS
Al Newkirk, +296
Anthony Brummett, +10
José Joaquín Atria, +1
AUTHOR
Al Newkirk, awncorp@cpan.org
LICENSE
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
PROJECT
SEE ALSO
To get the most out of this distribution, consider reading the following: