browse_images.plx.PL

filter: Statementstmt 100% 10 / 10 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 82.3% 14 / 17 CC 1 SCAR 0.0
CC
1
Cov
81%
BEGIN
1.0
CRAP 1.0
« Test_Progs/select2foreach ↑ Summary Test_Progs/other_select1 »
1 # Tim Maher
2  
3 # This script, script.pl.PL, is called by the Make system, with the name of the
4 # script to be created, script.pl as its arg
5  
6 # the contents of script.pl, except for its shebang line, is in script.0,
7 # which is inserted into script.pl by this script, script.pl.PL
8  
9 # NOTE: In this version, the *.0 an *.PL files are in the top-level
10 # distribution directory, but the generated scripts appear under ./Scripts.
11 # Sun May 4 17:01:10 PDT 2003
12  
13 10 ▶use Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 10 $pl_file = shift;
16  
17 10 ▶( $basename = $pl_file ) =~ s/\.plx$// or
Branch: 1 branch
BranchTrueFalseTotal
($basename = $pl_file) =~ s/\.plx$// or die "$0: Bad scriptname argument; no .plx ending!\n" 10 0 10
18 die "$0: Bad scriptname argument; no .plx ending!\n";
19 10 $file0="$basename.0";
20  
21 10 ▶open IN, "< $file0" or die "Can't open $file0: $!";
Branch: 1 branch
BranchTrueFalseTotal
open IN, "< $file0" or die "Can't open ${file0}: $!" 10 0 10
22 10 ▶open OUT, "> Scripts/$pl_file" or die "Can't create $pl_file: $!";
Branch: 1 branch
BranchTrueFalseTotal
open OUT, "> Scripts/$pl_file" or die "Can't create ${pl_file}: $!" 10 0 10
23 10 chmod (0755, "Scripts/$pl_file");
24  
25 10 print OUT $Config{startperl}, " -w\n", <IN>;
« Test_Progs/select2foreach ↑ Summary Test_Progs/other_select1 »