line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::Perldoc::ToPod; |
2
|
1
|
|
|
1
|
|
1011
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
3
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
3
|
use parent qw(Pod::Perldoc::BaseTo); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
50
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
250
|
|
7
|
|
|
|
|
|
|
$VERSION = '3.27'; |
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
0
|
0
|
|
sub is_pageable { 1 } |
10
|
0
|
|
|
0
|
0
|
|
sub write_with_binmode { 0 } |
11
|
0
|
|
|
0
|
0
|
|
sub output_extension { 'pod' } |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
0
|
0
|
0
|
|
sub new { return bless {}, ref($_[0]) || $_[0] } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub parse_from_file { |
16
|
0
|
|
|
0
|
0
|
|
my( $self, $in, $outfh ) = @_; |
17
|
|
|
|
|
|
|
|
18
|
0
|
0
|
|
|
|
|
open(IN, "<", $in) or $self->die( "Can't read-open $in: $!\nAborting" ); |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
my $cut_mode = 1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# A hack for finding things between =foo and =cut, inclusive |
23
|
0
|
|
|
|
|
|
local $_; |
24
|
0
|
|
|
|
|
|
while () { |
25
|
0
|
0
|
|
|
|
|
if( m/^=(\w+)/s ) { |
26
|
0
|
0
|
|
|
|
|
if($cut_mode = ($1 eq 'cut')) { |
27
|
0
|
|
|
|
|
|
print $outfh "\n=cut\n\n"; |
28
|
|
|
|
|
|
|
# Pass thru the =cut line with some harmless |
29
|
|
|
|
|
|
|
# (and occasionally helpful) padding |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
} |
32
|
0
|
0
|
|
|
|
|
next if $cut_mode; |
33
|
0
|
0
|
|
|
|
|
print $outfh $_ or $self->die( "Can't print to $outfh: $!" ); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
0
|
0
|
|
|
|
|
close IN or $self->die( "Can't close $in: $!" ); |
37
|
0
|
|
|
|
|
|
return; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
__END__ |