test3.pl untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 # Copyright 2001 Jörgen Hägg
4 # You may distribute under the terms of the GNU General Public License.
5  
6 use blib;
7 use Config::Cfe;
8  
9 read_file('testdata');
10
11 goto_top;
12 delete_sect 'x_sect';
13 append_sect 'x_sect';
14 append split(/\n/, `fortune -l`);
15 end_sect;
16  
17 list_lines;
18  
19 my $line = get_sect 'x_sect';
20  
21 print @$line, "\n";
22  
23 write_file;