http://www.perlmonks.org?node_id=79786

LiTinOveWeedle has asked for the wisdom of the Perl Monks concerning the following question:

Hi brothers,
I try to make my ftp transfer script functional, but I really must have somewhere in my code big error. My script should be started from web, It can run in two modes first "generate" only generate html page from template in which is inserted log from whole scripts. This part running well, so we can focus on second function - "transfer".
Scripts at first look into temp file to see, if not already running. If not, look into directory for files to transfer. If there are some files it connect to ftp server and should be transferall files. Why do I sayd should? Because if file is bigger ( I try 1MB and more ) script transfer only part of file.

OK if you know where I did mistake plz help me. Also plz be friendly to my code, this is only for testing....

code is inside

THX to all.

Li Tin O've Weedle
mad Tsort's philosopher