line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Module Generic - ~/lib/Class/Number.pm |
3
|
|
|
|
|
|
|
## Version v0.1.1 |
4
|
|
|
|
|
|
|
## Copyright(c) 2022 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2022/02/27 |
7
|
|
|
|
|
|
|
## Modified 2022/02/27 |
8
|
|
|
|
|
|
|
## All rights reserved |
9
|
|
|
|
|
|
|
## |
10
|
|
|
|
|
|
|
## This program is free software; you can redistribute it and/or modify it |
11
|
|
|
|
|
|
|
## under the same terms as Perl itself. |
12
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
13
|
|
|
|
|
|
|
BEGIN |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
use strict; |
16
|
2
|
|
|
2
|
|
1398
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
47
|
|
17
|
2
|
|
|
2
|
|
8
|
use parent qw( Module::Generic::Number ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
45
|
|
18
|
2
|
|
|
2
|
|
7
|
use vars qw( $SUPPORTED_LOCALES $DEFAULT ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
8
|
|
19
|
2
|
|
|
2
|
|
107
|
$SUPPORTED_LOCALES = $Module::Generic::Number::SUPPORTED_LOCALES; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
131
|
|
20
|
2
|
|
|
2
|
|
5
|
$DEFAULT = $Module::Generic::Number::DEFAULT; |
21
|
2
|
|
|
|
|
3
|
our $VERSION = 'v0.1.1'; |
22
|
2
|
|
|
|
|
43
|
}; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=encoding utf8 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Class::Number - A Number Object Class |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
use Class::Number; |
36
|
|
|
|
|
|
|
my $num = Class::Number->new; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
v0.1.1 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 DESCRIPTION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This package provides a versatile number class object for the manipulation and chaining of numbers. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
See L<Module::Generic::Number> for more information. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SEE ALSO |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
L<Class::Array>, L<Class::Scalar>, L<Class::Number>, L<Class::Boolean>, L<Class::Assoc>, L<Class::File>, L<Class::DateTime>, L<Class::Exception>, L<Class::Finfo>, L<Class::NullChain> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 AUTHOR |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Copyright (c) 2021 DEGUEST Pte. Ltd. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
61
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |