line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# [[[ HEADER ]]] |
2
|
|
|
|
|
|
|
package RPerl::DataType::Scalar; |
3
|
9
|
|
|
9
|
|
2950
|
use strict; |
|
9
|
|
|
|
|
24
|
|
|
9
|
|
|
|
|
217
|
|
4
|
9
|
|
|
9
|
|
47
|
use warnings; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
198
|
|
5
|
9
|
|
|
9
|
|
49
|
use RPerl::AfterSubclass; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
1438
|
|
6
|
|
|
|
|
|
|
our $VERSION = 0.003_000; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# [[[ OO INHERITANCE ]]] |
9
|
9
|
|
|
9
|
|
61
|
use parent qw(RPerl::DataType); |
|
9
|
|
|
|
|
22
|
|
|
9
|
|
|
|
|
48
|
|
10
|
9
|
|
|
9
|
|
523
|
use RPerl::DataType; |
|
9
|
|
|
|
|
38
|
|
|
9
|
|
|
|
|
302
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# [[[ CRITICS ]]] |
13
|
|
|
|
|
|
|
## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator |
14
|
|
|
|
|
|
|
## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils |
15
|
|
|
|
|
|
|
## no critic qw(Capitalization ProhibitMultiplePackages ProhibitReusedNames) # SYSTEM DEFAULT 3: allow multiple & lower case package names |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# [[[ SUB-TYPES ]]] |
18
|
|
|
|
|
|
|
# a scalartype is a known, non-void data type, meaning a number or a string |
19
|
|
|
|
|
|
|
# DEV NOTE: do NOT overload Perl's 'scalar' keyword!!! |
20
|
|
|
|
|
|
|
package # hide from PAUSE indexing |
21
|
|
|
|
|
|
|
scalartype; |
22
|
9
|
|
|
9
|
|
47
|
use strict; |
|
9
|
|
|
|
|
31
|
|
|
9
|
|
|
|
|
258
|
|
23
|
9
|
|
|
9
|
|
48
|
use warnings; |
|
9
|
|
|
|
|
24
|
|
|
9
|
|
|
|
|
250
|
|
24
|
9
|
|
|
9
|
|
45
|
use parent qw(RPerl::DataType::Scalar); |
|
9
|
|
|
|
|
14
|
|
|
9
|
|
|
|
|
37
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; # end of class |