| 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 |