Perl script to download the files from FTP server
I have a Perl script which downloads files from our FTP server to client.
Now my requirement is as below,
1. we have a directory structure in ftp server and we have the same directory structure in our ftp client.
2.I want to download the file in such a way that the flies from the respective directory in server should go the same directory in ftp client.
server has /dir1/file1
client has /dir1/
it has to place the file from server dir1 to client dir1.
is there any way to do it using Perl script.
Thanks in advance.