1Data::Perl::Number(3) User Contributed Perl DocumentationData::Perl::Number(3)
2
3
4
6 Data::Perl::Number - Wrapping class for Perl scalar numbers.
7
9 version 0.002011
10
12 use Data::Perl qw/number/;
13
14 my $num = number(123);
15
16 $num->add(5); # $num == 128
17
18 $num->div(2); # $num == 64
19
21 This class is a simple consumer of the Data::Perl::Role::Number role,
22 which provides all functionality. You probably want to look there
23 instead.
24
26 Matthew Phillips <mattp@cpan.org>
27
29 This software is copyright (c) 2020 by Matthew Phillips
30 <mattp@cpan.org>.
31
32 This is free software; you can redistribute it and/or modify it under
33 the same terms as the Perl 5 programming language system itself.
34
35
36
37perl v5.36.0 2022-07-22 Data::Perl::Number(3)