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