line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
832
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
56
|
|
2
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
91
|
|
3
|
|
|
|
|
|
|
package YAML::PP::Perl; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.036'; # VERSION |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use base 'Exporter'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
172
|
|
8
|
2
|
|
|
2
|
|
12
|
use base 'YAML::PP'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
256
|
|
9
|
|
|
|
|
|
|
our @EXPORT_OK = qw/ Load Dump LoadFile DumpFile /; |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
23
|
use YAML::PP; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
82
|
|
12
|
2
|
|
|
2
|
|
991
|
use YAML::PP::Schema::Perl; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
358
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
14
|
|
|
14
|
1
|
103
|
my ($class, %args) = @_; |
16
|
14
|
|
100
|
|
|
65
|
$args{schema} ||= [qw/ Core Perl /]; |
17
|
14
|
|
|
|
|
72
|
$class->SUPER::new(%args); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub Load { |
21
|
2
|
|
|
2
|
1
|
4485
|
my ($yaml) = @_; |
22
|
2
|
|
|
|
|
14
|
__PACKAGE__->new->load_string($yaml); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub LoadFile { |
26
|
2
|
|
|
2
|
1
|
222
|
my ($file) = @_; |
27
|
2
|
|
|
|
|
7
|
__PACKAGE__->new->load_file($file); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub Dump { |
31
|
1
|
|
|
1
|
1
|
2512
|
my (@data) = @_; |
32
|
1
|
|
|
|
|
11
|
__PACKAGE__->new->dump_string(@data); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub DumpFile { |
36
|
1
|
|
|
1
|
1
|
998
|
my ($file, @data) = @_; |
37
|
1
|
|
|
|
|
4
|
__PACKAGE__->new->dump_file($file, @data); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |