NAME
Data::Object
ABSTRACT
Object-Orientation for Perl 5
SYNOPSIS
package main;
use Data::Object;
my $array = Array [1..4];
# my $iterator = $array->iterator;
# $iterator->next; # 1
DESCRIPTION
This package automatically exports and provides constructor functions for creating chainable data type objects from raw Perl data types.
LIBRARIES
This package uses type constraints from:
FUNCTIONS
This package implements the following functions:
array
Array(ArrayRef $data) : InstanceOf["Data::Object::Box"]
The Array function returns a Data::Object::Box which wraps a Data::Object::Array object.
boolean
Boolean(Bool $data) : BooleanObject
The Boolean function returns a Data::Object::Boolean object representing a true or false value.
box
Box(Any $data) : InstanceOf["Data::Object::Box"]
The Box function returns a Data::Object::Box object representing a data type object which is automatically deduced.
code
Code(CodeRef $data) : InstanceOf["Data::Object::Box"]
The Code function returns a Data::Object::Box which wraps a Data::Object::Code object.
false
False() : BooleanObject
The False function returns a Data::Object::Boolean object representing a false value.
float
Float(Num $data) : InstanceOf["Data::Object::Box"]
The Float function returns a Data::Object::Box which wraps a Data::Object::Float object.
hash
Hash(HashRef $data) : InstanceOf["Data::Object::Box"]
The Hash function returns a Data::Object::Box which wraps a Data::Object::Hash object.
number
Number(Num $data) : InstanceOf["Data::Object::Box"]
The Number function returns a Data::Object::Box which wraps a Data::Object::Number object.
regexp
Regexp(RegexpRef $data) : InstanceOf["Data::Object::Box"]
The Regexp function returns a Data::Object::Box which wraps a Data::Object::Regexp object.
scalar
Scalar(Ref $data) : InstanceOf["Data::Object::Box"]
The Scalar function returns a Data::Object::Box which wraps a Data::Object::Scalar object.
string
String(Str $data) : InstanceOf["Data::Object::Box"]
The String function returns a Data::Object::Box which wraps a Data::Object::String object.
true
True() : BooleanObject
The True function returns a Data::Object::Boolean object representing a true value.
undef
Undef() : InstanceOf["Data::Object::Box"]
The Undef function returns a Data::Object::Undef object representing the undefined value.
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 terms of the The Apache License, Version 2.0, as elucidated in the "license file".