in reply to automate ftp using perl
The files won't change in the source dir, whether they've been uploaded or not, so the source won't tell you anything.
If you want to know which files are in the destination directory, connect to it with NET::FTP and get a listing with the ls() function.
($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
|
|---|