Data::Object::State
Data-Object Singleton Declaration
package Registry; use Data::Object 'State'; extends 'Environment';
Data::Object::State modifies the consuming package makes it a singleton class.
This package implements the following methods.
renew(Any @args) : Object
The renew method resets the state and returns a new singleton.
my $renew = $self->renew(@args);
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.