| 1 | |||||||||||||||||||||
| 2 | 1 | ▶ | use Module::Build; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | 1 | my $b = Module::Build->current; | |||||||||||||||||||
| 5 | 1 | my $perl = $b->perl; | |||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 1 | for ( | |||||||||||||||||||
| 8 | [ | ||||||||||||||||||||
| 9 | $b->localize_file_path('blib/cat'), | ||||||||||||||||||||
| 10 | qq{#!$perl\nopen FILE, \$ARGV[0] || die "\$0: could not open \$ARGV[0]";} . | ||||||||||||||||||||
| 11 | qq{\nlocal \$/;\nprint <FILE>;\nclose FILE;\n} | ||||||||||||||||||||
| 12 | ], | ||||||||||||||||||||
| 13 | [ | ||||||||||||||||||||
| 14 | $b->localize_file_path('blib/echo'), | ||||||||||||||||||||
| 15 | qq{#!$perl\nprint join(q/ /, \@ARGV), "\\n";\n} | ||||||||||||||||||||
| 16 | ], | ||||||||||||||||||||
| 17 | [ | ||||||||||||||||||||
| 18 | $b->localize_file_path('blib/false'), | ||||||||||||||||||||
| 19 | qq{#!$perl\nexit 1;\n} | ||||||||||||||||||||
| 20 | ], | ||||||||||||||||||||
| 21 | [ | ||||||||||||||||||||
| 22 | $b->localize_file_path('blib/true'), | ||||||||||||||||||||
| 23 | qq{#!$perl\nexit 0;\n} | ||||||||||||||||||||
| 24 | ], | ||||||||||||||||||||
| 25 | ) { | ||||||||||||||||||||
| 26 | 4 | ▶ | open FILE, ">$$_[0]" || die "Could not write to file: $$_[0]"; | ||||||||||||||||||
|
Condition50%1/2
">$_->[0]" || die("Could not write to file: $_->[0]")
MC/DC0%0/1
">$_->[0]" || die("Could not write to file: $_->[0]")
">$_->[0]"
Truth table50%1/2
A
A= ">$_->[0]"
| |||||||||||||||||||||
| 27 | 4 | print FILE $$_[1]; | |||||||||||||||||||
| 28 | 4 | ▶ | close FILE || die "Could not write to file: $$_[0]"; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 29 | 4 | ▶ | chmod 0755, $$_[0] || $!; | ||||||||||||||||||
|
Condition33%1/3
$_->[0] || $!
MC/DC0%0/2
$_->[0] || $!
$_->[0]
$!
Truth table33%1/3
A || B
A= $_->[0]B= $!
| |||||||||||||||||||||
| 30 | } | ||||||||||||||||||||
| 31 | |||||||||||||||||||||