Data::Object::Base::Number
Data-Object Abstract Number Class
package My::Number; use parent 'Data::Object::Base::Number'; my $number = My::Number->new(1_000_000);
Data::Object::Base::Number provides routines for operating on Perl 5 numeric data.
This package implements the following methods.
new(Int $arg1) : Object
The new method expects a number and returns a new class instance.
# given 1_000_000 package My::Number; use parent 'Data::Object::Base::Number'; my $number = My::Number->new(1_000_000);
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.