Hi,
I'm new to Perl but I feel like this problem can easily be solved in Perl. Here's what I want to do.
I have 2 almost identical folders, say Folder1 and Folder2. Both folders have files and subfolders. You can think of Folder2 as a folder that contains an updated version of the program in Folder1. What I want to do is write an update.pl script that will look in Folder2 and update Folder1 (files and subfolders) accordingly. In other words, if there's a more recent file in Folder2, then update.pl replace that old file in Folder1 with the updated file. Similarly, if there's a new subfolder in Folder2, the script will create that folder under Folder1 along with the files in it.
Does anyone know a simple way of doing this in Perl?
Thanks,
Mete
I'm new to Perl but I feel like this problem can easily be solved in Perl. Here's what I want to do.
I have 2 almost identical folders, say Folder1 and Folder2. Both folders have files and subfolders. You can think of Folder2 as a folder that contains an updated version of the program in Folder1. What I want to do is write an update.pl script that will look in Folder2 and update Folder1 (files and subfolders) accordingly. In other words, if there's a more recent file in Folder2, then update.pl replace that old file in Folder1 with the updated file. Similarly, if there's a new subfolder in Folder2, the script will create that folder under Folder1 along with the files in it.
Does anyone know a simple way of doing this in Perl?
Thanks,
Mete