delete-whitespace.pl untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 #=====================================================================
4 # DECLARATIONS
5 #=====================================================================
6 use strict;
7 use Whitespace;
8  
9 #=====================================================================
10 # PROGRAM PROPER
11 #=====================================================================
12  
13 my @file = <*.pl>;
14  
15  
16 for my $file ( @file ) {
17  
18  
19 my $ws = new Whitespace($file, "$file-ws");
20 $ws->trailclean;
21 rename ("$file-ws", $file);
22  
23 }
24  
25 #=====================================================================
26 # SUBROUTINES
27 #=====================================================================
28  
29 1;
30