line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Config::Constants::XML; |
3
|
|
|
|
|
|
|
|
4
|
9
|
|
|
9
|
|
24146
|
use strict; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
323
|
|
5
|
9
|
|
|
9
|
|
44
|
use warnings; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
384
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
8
|
|
|
|
|
|
|
|
9
|
9
|
|
|
9
|
|
46
|
use base 'Config::Constants::Perl'; |
|
9
|
|
|
|
|
23
|
|
|
9
|
|
|
|
|
4729
|
|
10
|
|
|
|
|
|
|
|
11
|
9
|
|
|
9
|
|
6217
|
use Config::Constants::XML::SAX::Handler; |
|
9
|
|
|
|
|
29
|
|
|
9
|
|
|
|
|
305
|
|
12
|
9
|
|
|
9
|
|
9012
|
use XML::SAX::ParserFactory; |
|
9
|
|
|
|
|
43031
|
|
|
9
|
|
|
|
|
1174
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub _init { |
15
|
8
|
|
|
8
|
|
17
|
my ($self, $file) = @_; |
16
|
8
|
50
|
33
|
|
|
332
|
(-e $file && -f $file) |
17
|
|
|
|
|
|
|
|| die "Bad config file '$file' either it doesn't exist or it's not a file"; |
18
|
8
|
|
|
|
|
70
|
my $handler = Config::Constants::XML::SAX::Handler->new(); |
19
|
8
|
|
|
|
|
41
|
my $p = XML::SAX::ParserFactory->parser(Handler => $handler); |
20
|
8
|
|
|
|
|
819501
|
$p->parse_uri($file); |
21
|
7
|
|
|
|
|
1031
|
$self->{_config} = $handler->config(); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |