Hi,
I am very new too Perl scripting, so any help would be greatly appreciated. I am looking to create a Perl script to FTP files from multiple source directories to multiple target directories, with each source directory is mapped to a particular target directory. For example, FTP all files from source dir 100 to target dir 100, source 200 to target 200, etc. I have 9 source and 9 target directories to FTP files from/to. Each directory is on the same level, there are no sub-directories, and I need to FTP all files from each directory, all PDF's, so maybe *.PDF could be used.
I am thinking I need to use a loop, but I am not quite sure how to use it without defining multiple variables for each directory. Any suggestions? Samples?
Thanks
I am very new too Perl scripting, so any help would be greatly appreciated. I am looking to create a Perl script to FTP files from multiple source directories to multiple target directories, with each source directory is mapped to a particular target directory. For example, FTP all files from source dir 100 to target dir 100, source 200 to target 200, etc. I have 9 source and 9 target directories to FTP files from/to. Each directory is on the same level, there are no sub-directories, and I need to FTP all files from each directory, all PDF's, so maybe *.PDF could be used.
I am thinking I need to use a loop, but I am not quite sure how to use it without defining multiple variables for each directory. Any suggestions? Samples?
Thanks