Data::Object::Base::Scalar
Data-Object Abstract Scalar Class
package My::Scalar; use parent 'Data::Object::Base::Scalar'; my $scalar = My::Scalar->new(\*main);
Data::Object::Base::Scalar provides routines for operating on Perl 5 scalar objects.
This package implements the following methods.
new(ScalarRef $arg1) : Object
The new method expects a scalar reference and returns a new class instance.
# given \*main package My::Scalar; use parent 'Data::Object::Base::Scalar'; my $scalar = My::Scalar->new(\*main);
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.