line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
151244
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
159
|
|
2
|
4
|
|
|
4
|
|
20
|
use warnings; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
699
|
|
3
|
|
|
|
|
|
|
package Pod::Eventual::Simple; |
4
|
|
|
|
|
|
|
{ |
5
|
|
|
|
|
|
|
$Pod::Eventual::Simple::VERSION = '0.094001'; |
6
|
|
|
|
|
|
|
} |
7
|
4
|
|
|
4
|
|
3348
|
use Pod::Eventual; |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
217
|
|
8
|
4
|
|
|
4
|
|
649
|
BEGIN { our @ISA = 'Pod::Eventual' } |
9
|
|
|
|
|
|
|
# ABSTRACT: just get an array of the stuff Pod::Eventual finds |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
4
|
|
|
4
|
0
|
9
|
my ($class) = @_; |
14
|
4
|
|
|
|
|
16
|
bless [] => $class; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub read_handle { |
18
|
4
|
|
|
4
|
1
|
1075
|
my ($self, $handle, $arg) = @_; |
19
|
4
|
50
|
|
|
|
32
|
$self = $self->new unless ref $self; |
20
|
4
|
|
|
|
|
46
|
$self->SUPER::read_handle($handle, $arg); |
21
|
4
|
|
|
|
|
250
|
return [ @$self ]; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub handle_event { |
25
|
57
|
|
|
57
|
1
|
171
|
my ($self, $event) = @_; |
26
|
57
|
|
|
|
|
199
|
push @$self, $event; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
BEGIN { |
30
|
4
|
|
|
4
|
|
17
|
*handle_blank = \&handle_event; |
31
|
4
|
|
|
|
|
116
|
*handle_nonpod = \&handle_event; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=pod |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Pod::Eventual::Simple - just get an array of the stuff Pod::Eventual finds |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 VERSION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
version 0.094001 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SYNOPSIS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
use Pod::Eventual::Simple; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
my $output = Pod::Eventual::Simple->read_file('awesome.pod'); |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This subclass just returns an array reference when you use the reading methods. |
55
|
|
|
|
|
|
|
The arrayref contains all the Pod events and non-Pod content. Non-Pod content |
56
|
|
|
|
|
|
|
is given as hashrefs like this: |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
{ |
59
|
|
|
|
|
|
|
type => 'nonpod', |
60
|
|
|
|
|
|
|
content => "This is just some text\n", |
61
|
|
|
|
|
|
|
start_line => 162, |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
For just the POD events, grep for C<type> not equals "nonpod" |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=for Pod::Coverage new |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 AUTHOR |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Ricardo SIGNES <rjbs@cpan.org> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This software is copyright (c) 2013 by Ricardo SIGNES. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
77
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |