line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
71574
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
94
|
|
2
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
140
|
|
3
|
|
|
|
|
|
|
package B::Hooks::Parser; # git description: v0.18-3-gc96b1f1 |
4
|
|
|
|
|
|
|
# ABSTRACT: Interface to perl's parser variables |
5
|
|
|
|
|
|
|
# KEYWORDS: perl internals API parser hooks modify |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
1807
|
use B::Hooks::OP::Check; |
|
3
|
|
|
|
|
3900
|
|
|
3
|
|
|
|
|
98
|
|
8
|
3
|
|
|
3
|
|
18
|
use parent qw/DynaLoader/; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
11
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.19'; |
11
|
|
|
|
|
|
|
|
12
|
3
|
|
|
3
|
1
|
687
|
sub dl_load_flags { 0x01 } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
__PACKAGE__->bootstrap($VERSION); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub inject { |
17
|
2
|
|
|
2
|
1
|
241
|
my ($code) = @_; |
18
|
|
|
|
|
|
|
|
19
|
2
|
|
|
|
|
8
|
setup(); |
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
|
|
4
|
my $line = get_linestr(); |
22
|
2
|
|
|
|
|
4
|
my $offset = get_linestr_offset(); |
23
|
|
|
|
|
|
|
|
24
|
2
|
|
|
|
|
4
|
substr($line, $offset, 0) = $code; |
25
|
|
|
|
|
|
|
|
26
|
2
|
|
|
|
|
5
|
set_linestr($line); |
27
|
|
|
|
|
|
|
|
28
|
2
|
|
|
|
|
1037
|
return; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |