use File::Copy;
copy("hash2.txt","hash.txt") or die "Copy failed: $!";
move("dest_dir/test_file","hash2.txt") or die "Move failed: $!";
copy("hash2.txt","hash.txt") or die "Copy failed: $!";
move("dest_dir/test_file","hash2.txt") or die "Move failed: $!";
No comments:
Post a Comment