line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Eixo::Base::Data; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
618
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
4
|
1
|
|
|
1
|
|
341
|
use Eixo::Base::Clase; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
6
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub getDataBySections{ |
7
|
0
|
|
|
0
|
0
|
0
|
my ($module) = @_; |
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
|
|
0
|
my $data = &getData($module); |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
0
|
my $sections = {}; |
12
|
0
|
|
|
|
|
0
|
my $section_name = undef; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
0
|
foreach my $l (split(/\n/, $data)){ |
15
|
|
|
|
|
|
|
|
16
|
0
|
0
|
|
|
|
0
|
if($l =~ /^\s*\@\@(\w+)/){ |
17
|
0
|
|
|
|
|
0
|
$section_name = $1; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
else{ |
20
|
0
|
0
|
|
|
|
0
|
$sections->{$section_name} .= "$l\n" if($section_name); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
0
|
$sections; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub getData{ |
28
|
2
|
|
|
2
|
0
|
1789
|
my ($module) = @_; |
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
1
|
|
11
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
135
|
|
31
|
|
|
|
|
|
|
|
32
|
2
|
|
|
|
|
5
|
my $f = \*{$module . '::DATA'}; |
|
2
|
|
|
|
|
9
|
|
33
|
|
|
|
|
|
|
|
34
|
2
|
50
|
|
|
|
8
|
return undef unless(defined($f)); |
35
|
|
|
|
|
|
|
|
36
|
2
|
|
|
|
|
7
|
my $pos = tell($f); |
37
|
|
|
|
|
|
|
|
38
|
2
|
|
|
|
|
39
|
my $datos = join('', <$f>); |
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
|
|
19
|
seek($f, $pos, 0); |
41
|
|
|
|
|
|
|
|
42
|
2
|
|
|
|
|
13
|
return $datos; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |