| 1 | #line 1 | ||||||||||||
| 2 | 1 | ▶ | package Module::Install::ReadmePodFromPod; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 1 | ▶ | use base qw(Module::Install::Base); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | use vars qw($VERSION); | ||||||||||||
| 7 | 1 | ||||||||||||
| 8 | $VERSION = '0.01'; | ||||||||||||
| 9 | 1 | ▶ | |||||||||||
|
Subroutine
readme_pod_from: called CC=4 SCAR=14.2
Pod
documented
| |||||||||||||
| 10 | 1 | sub readme_pod_from { | |||||||||||
| 11 | 1 | ▶ | my $self = shift; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 12 | 1 | ▶ | return unless $Module::Install::AUTHOR; | ||||||||||
|
Condition50%1/2
shift() || (return)
MC/DC0%0/1
shift() || (return)
shift()
Truth table50%1/2
A
A= shift()
| |||||||||||||
| 13 | my $file = shift || return; | ||||||||||||
| 14 | 1 | ||||||||||||
| 15 | 1 | ▶ | require Pod::Perldoc::ToPod; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 16 | 1 | open my $out, '>', 'README.pod' or die "can not create README.pod file: $!"; | |||||||||||
| 17 | 1 | my $parser = Pod::Perldoc::ToPod->new; | |||||||||||
| 18 | 1 | $parser->parse_from_file($file, $out); | |||||||||||
| 19 | return 1; | ||||||||||||
| 20 | } | ||||||||||||
| 21 | 1 | ||||||||||||
| 22 | 'let README.pod render Pod as ... Pod!'; | ||||||||||||
| 23 | __END__ | ||||||||||||