| 1 | package MyModuleBuilder; | ||||||||||
| 2 | 1 | ▶ | use Module::Build; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | our @ISA = qw(Module::Build); | |||||||||
| 4 | 1 | our $XML_parser = 'XML::LibXML'; | |||||||||
| 5 | 1 | our $with_axkit = ''; | |||||||||
| 6 | 1 | our $with_tomkit = ''; | |||||||||
| 7 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use File::Spec (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | sub process_pm_files { | ||||||||||
| 13 | 1 | ▶ | my $self = shift; | ||||||||
|
Subroutine
process_pm_files: called CC=4 SCAR=14.0
Pod
undocumented
| |||||||||||
| 14 | 1 | $self->SUPER::process_pm_files(@_); | |||||||||
| 15 | |||||||||||
| 16 | 1 | my $outfile = File::Spec->catfile(qw(blib lib XML XPathScript.pm)); | |||||||||
| 17 | 1 | unlink($outfile); | |||||||||
| 18 | 1 | ▶ | my $in = new IO::File("lib/XML/XPathScript.pm", "<") or die "$!"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 1 | ▶ | my $out = new IO::File($outfile, ">") or die "$!"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 1 | ▶ | while(<$in>) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 1217 | s/^(\$XML_parser = )'.*?';$/$1'$XML_parser';/; | |||||||||
| 22 | 1217 | $out->print($_); | |||||||||
| 23 | } | ||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 1 | 1; | |||||||||