I did't ckeck all the code, but like it's working ok, maybe you problem is if the file1 still on remote directory. To check if this file still there you can use '@Files = ftp->ls ($destination)' to get files list, and look at @Files to check it.
You are looking for a good example of NET::FTP try ftp_mirror.pl
In reply to Re: need help with FTP script
by shonorio
in thread need help with FTP script
by cc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |