line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::Plainer; |
2
|
1
|
|
|
1
|
|
863
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
35
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
4
|
1
|
|
|
1
|
|
19
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
5
|
1
|
|
|
1
|
|
5
|
use Pod::Parser; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
340
|
|
6
|
|
|
|
|
|
|
our @ISA = qw(Pod::Parser); |
7
|
|
|
|
|
|
|
our $VERSION = '1.04'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our %E = qw( < lt > gt ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub escape_ltgt { |
12
|
30
|
|
|
30
|
1
|
50
|
(undef, my $text) = @_; |
13
|
30
|
|
|
|
|
97
|
$text =~ s/([<>])/E<$E{$1}>/g; |
14
|
30
|
|
|
|
|
1814
|
$text |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub simple_delimiters { |
18
|
9
|
|
|
9
|
1
|
16
|
(undef, my $seq) = @_; |
19
|
9
|
|
|
|
|
30
|
$seq -> left_delimiter( '<' ); |
20
|
9
|
|
|
|
|
27
|
$seq -> right_delimiter( '>' ); |
21
|
9
|
|
|
|
|
98
|
$seq; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub textblock { |
25
|
14
|
|
|
14
|
1
|
5922
|
my($parser,$text,$line) = @_; |
26
|
14
|
|
|
|
|
20
|
print {$parser->output_handle()} |
|
14
|
|
|
|
|
602
|
|
27
|
|
|
|
|
|
|
$parser->parse_text( |
28
|
|
|
|
|
|
|
{ -expand_text => q(escape_ltgt), |
29
|
|
|
|
|
|
|
-expand_seq => q(simple_delimiters) }, |
30
|
|
|
|
|
|
|
$text, $line ) -> raw_text(); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |