use File::Copy; copy (from_path_file, to_path_file) or die "error: $!\n"; #can use "move" in place of "copy", and can rename file in process