| 1 | #!/usr/bin/perl -w | ||||||||||||
| 2 | |||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | 1 | ▶ | use Getopt::Long; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 1 | ▶ | use HTML::Links::Localize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 1 | my $only_newer; | |||||||||||
| 9 | |||||||||||||
| 10 | 1 | my $result = GetOptions("f" => \$only_newer); | |||||||||||
| 11 | |||||||||||||
| 12 | 1 | my $src_dir = shift; | |||||||||||
| 13 | 1 | ▶ | my $dest_dir = shift || "./dest"; | ||||||||||
|
Condition50%1/2
shift @ARGV || './dest'
MC/DC0%0/1
shift @ARGV || './dest'
shift @ARGV
Truth table50%1/2
A
A= shift @ARGV
| |||||||||||||
| 14 | |||||||||||||
| 15 | 1 | my $converter = | |||||||||||
| 16 | HTML::Links::Localize->new( | ||||||||||||
| 17 | 'base_dir' => $src_dir, | ||||||||||||
| 18 | 'dest_dir' => $dest_dir | ||||||||||||
| 19 | ); | ||||||||||||
| 20 | |||||||||||||
| 21 | 1 | $converter->process_dir_tree('only-newer' => $only_newer); | |||||||||||
| 22 | |||||||||||||
| 23 | __END__ | ||||||||||||