in reply to Confuse and lost in Transfer files process

<html><head><title></title></head><body><Hi friends,well thank you of all your answer.I finally get my program run right after all.
Since ,TIMTOWTDI,I did it using the same program I post,but with different arrangement.
From what I understand from tye,I think my algorithm is right from first place,but when it is run inside the computer,then the internal working of processing the algorithm is not run very well.
I do not know very detailed about this,but I think I got idea about it.
It might be something involving the buffer and the speed the perl program is interpreted.Before the process to FTP the file is done,completely,the file has been unlink inside the buffer which is used to send the file to other server.Please correct me if I am wrong.
So,that's why there is the time delay between the execution.
C:\Perl\bin>perl file.pl File x.wml has been transferred <br> File y.wml has been transferred <br> File z.wml has been transferred <br> <--Time delay around 3 seconds--> <--The file is inside the output buffer to be send--> <--while waiting to the remotehost to open port or connection,the unli +nk process has unlink all the files--> <--when the remotehost has give permission to enter the server,the fil +es has already been deleted--> <--So,that's why the error mesage below is sent--> x.wml: File not found y.wml: File not found z.wml: File not found <--mission 1 which is to send the files to other server is not accompl +ished--> C:\perl\bin>

So,what I did is ,I put the unlink process above the ftp proces,so each time the new files are been transferred,the program will delete the previous files which have been transferred already,and then go to ftp the new files.
This means that,after the new files have been transferred,it will not be deleted,until another user run the program again.So,I can check what is the files the user has transferred.If the server cannot be connected,the files whic are selected to transfer is not deleted yet inside the localhost.So,I can take the files and then transfer it manually,by using the e-mail etc,since it is not been deleted yet.
Anyway,now the program is working fine.Thanks for all your supports.
V R E M P I R E
P/S:Get the idea while washing the clothes, ;) </body></html>