line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Object::Autobox::Autoload::Number; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1118
|
use 5.010; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
48
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
51
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
46
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use Carp 'confess'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
93
|
|
8
|
1
|
|
|
1
|
|
6
|
use Data::Object 'type_number'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
50
|
|
9
|
1
|
|
|
1
|
|
11
|
use Scalar::Util 'blessed'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
304
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub AUTOLOAD { |
12
|
0
|
|
|
0
|
|
|
my ($package, $method) = our $AUTOLOAD =~ /^(.+)::(.+)$/; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
my $delegate = 'Data::Object::Number'; |
15
|
0
|
|
|
|
|
|
my $self = $_[0] = type_number $_[0]; |
16
|
|
|
|
|
|
|
|
17
|
0
|
0
|
0
|
|
|
|
confess "Undefined subroutine &${delegate}::$method called" |
18
|
|
|
|
|
|
|
unless blessed $self && $self->isa($delegate); |
19
|
|
|
|
|
|
|
|
20
|
0
|
0
|
|
|
|
|
confess "Can't locate object method \"$method\" via package \"$delegate\"" |
21
|
|
|
|
|
|
|
unless my $source = $self->can($method); |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
goto $source; # delegate to Data::Object::Number ... |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |