line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OOP::Constructor; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
10
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
85
|
|
4
|
1
|
|
|
1
|
|
7
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
301
|
|
5
|
1
|
|
|
1
|
|
768
|
use OOP::_getArgs; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
138
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub set_args { |
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
0
|
9
|
my ($self, $ARGS) = @_; |
10
|
|
|
|
|
|
|
|
11
|
4
|
|
33
|
|
|
16
|
my $arguments = $ARGS->{ARGS} || croak "No arguments were passed to the prototype!"; |
12
|
4
|
|
33
|
|
|
12
|
my $prototype = $ARGS->{PROTOTYPE} || croak "No prototype was passed to the prototype!"; |
13
|
|
|
|
|
|
|
|
14
|
4
|
|
|
|
|
4
|
my %test; |
15
|
|
|
|
|
|
|
|
16
|
4
|
|
|
|
|
27
|
tie(%test, 'OOP::_getArgs', { |
17
|
|
|
|
|
|
|
ARGS => $arguments, |
18
|
|
|
|
|
|
|
PROTOTYPE => $prototype |
19
|
|
|
|
|
|
|
}); |
20
|
|
|
|
|
|
|
|
21
|
4
|
|
|
|
|
22
|
return \%test; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |