line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
10
|
|
|
10
|
|
72
|
use strict; use warnings; |
|
10
|
|
|
10
|
|
21
|
|
|
10
|
|
|
|
|
297
|
|
|
10
|
|
|
|
|
54
|
|
|
10
|
|
|
|
|
19
|
|
|
10
|
|
|
|
|
403
|
|
2
|
|
|
|
|
|
|
package YAMLScript::ReadLine; |
3
|
|
|
|
|
|
|
|
4
|
10
|
|
|
10
|
|
68
|
use base 'Lingy::ReadLine'; |
|
10
|
|
|
|
|
26
|
|
|
10
|
|
|
|
|
1207
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
{ |
7
|
|
|
|
|
|
|
package Lingy::ReadLine; |
8
|
10
|
|
|
10
|
|
73
|
use constant RL => YAMLScript::ReadLine->new; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
81
|
|
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $home = $ENV{HOME}; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub history_file { |
14
|
0
|
|
|
0
|
0
|
|
my $history_file = "$ENV{PWD}/.yamlscript_history"; |
15
|
0
|
0
|
|
|
|
|
$history_file = "$home/.yamlscript_history" |
16
|
|
|
|
|
|
|
unless -w $history_file; |
17
|
0
|
|
|
|
|
|
return $history_file; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub multi_start { |
21
|
0
|
|
|
0
|
0
|
|
my ($self, $line) = @_; |
22
|
|
|
|
|
|
|
( |
23
|
0
|
0
|
|
|
|
|
$line =~ /^---(?=\s|\z)/ and |
24
|
|
|
|
|
|
|
not $line =~ /^\.\.\.\z/m |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub multi_stop{ |
29
|
0
|
|
|
0
|
0
|
|
my ($self, $line) = @_; |
30
|
0
|
|
|
|
|
|
$line eq '...'; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |