Next Program Repair Shop 40

CopyFiles

        sub CopyFiles {
            my $src = shift;
            my $dst = shift;
            foreach $file (@_) {
              next if $file !~ /\d/;
              next if $file !~ /\.txt$/;
              my $command = "cp $src/$file $dst/$file";
              system($command);
              print "$command\n";
            }
        }


Next Copyright © 2002 M. J. Dominus