Data::Object::Any
Data-Object Any Class
use Data::Object::Any; my $any = Data::Object::Any->new(\*main);
Data::Object::Any provides routines for operating on any Perl 5 data type.
This package implements the following methods.
defined() : NumObject
The defined method returns truthy for defined data.
my $defined = $self->defined();
eq(Any $arg1) : NumObject
The eq method returns truthy if argument and object data are equal.
my $eq = $self->eq();
ge(Any $arg1) : NumObject
The ge method returns truthy if argument is greater or equal to the object data.
my $ge = $self->ge();
gt(Any $arg1) : NumObject
The gt method returns truthy if argument is greater then the object data.
my $gt = $self->gt();
le(Any $arg1) : NumObject
The le method returns truthy if argument is lesser or equal to the object data.
my $le = $self->le();
lt(Any $arg1) : NumObject
The lt method returns truthy if argument is lesser than the object data.
my $lt = $self->lt();
ne(Any $arg1) : NumObject
The ne method returns truthy if argument and object data are not equal.
my $ne = $self->ne();
roles() : ArrayRef
The roles method returns consumed roles.
my $roles = $any->roles();
rules() : ArrayRef
The rules method returns consumed rules.
my $rules = $any->rules();
This package inherits all behavior from the folowing role(s):
Data::Object::Role::Detract
Data::Object::Role::Dumper
Data::Object::Role::Output
Data::Object::Role::Throwable
This package adheres to the requirements in the folowing rule(s):
Data::Object::Rule::Comparison
Data::Object::Rule::Defined
To install Data::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Object
CPAN shell
perl -MCPAN -e shell install Data::Object
For more information on module installation, please visit the detailed CPAN module installation guide.