line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PLS::Parser::Pod::Builtin; |
2
|
|
|
|
|
|
|
|
3
|
11
|
|
|
11
|
|
67
|
use strict; |
|
11
|
|
|
|
|
22
|
|
|
11
|
|
|
|
|
278
|
|
4
|
11
|
|
|
11
|
|
53
|
use warnings; |
|
11
|
|
|
|
|
21
|
|
|
11
|
|
|
|
|
244
|
|
5
|
|
|
|
|
|
|
|
6
|
11
|
|
|
11
|
|
55
|
use parent 'PLS::Parser::Pod'; |
|
11
|
|
|
|
|
13
|
|
|
11
|
|
|
|
|
74
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
PLS::Parser::Pod::Builtin |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 DESCRIPTION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
This attempts to find POD for a Perl builtin functions or keywords. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub new |
19
|
|
|
|
|
|
|
{ |
20
|
0
|
|
|
0
|
0
|
|
my ($class, @args) = @_; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
my %args = @args; |
23
|
0
|
|
|
|
|
|
my $self = $class->SUPER::new(%args); |
24
|
0
|
|
|
|
|
|
$self->{function} = $args{function}; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
return $self; |
27
|
|
|
|
|
|
|
} ## end sub new |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub find |
30
|
|
|
|
|
|
|
{ |
31
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
my ($ok, $markdown) = $self->run_perldoc_command('-Tuf', $self->{function}); |
34
|
|
|
|
|
|
|
|
35
|
0
|
0
|
|
|
|
|
$self->{markdown} = $markdown if $ok; |
36
|
0
|
|
|
|
|
|
return $ok; |
37
|
|
|
|
|
|
|
} ## end sub find |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |