Data::Object::Registry
Data-Object Namespace Registry
use Data::Object::Registry; my $registry = Data::Object::Registry->new;
Data::Object::Registry is a singleton that holds mappings for namespaces and type libraries.
This package implements the following methods.
my $def = $registry->def();
Returns the default type library.
my $get = $registry->get($key);
The get method returns the value of the element with the specific key.
my $lut = $registry->lut($key);
Returns the lookup table for a given namespace.
my $obj = $registry->obj($key);
Return the Type::Registry object for a given namespace.
my $rem = $registry->rem($key, $val);
Remove the registered type library from a given namespace.
my $set = $registry->set($key, $val);
Set the supplied key and value, and return the value.
my $tns = $registry->tns();
Returns the registered type-namespaces.
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.