ya i have a script that downloads a file. But i dont know the time i should wait for the download to complete. So i needed something which tells me that the file has finished downloading so that i can call another script for processing the file downloaded.
If you use LWP::Simple's getstore as suggested, you don't have to wait. Or rather: when the function finally returns (it could take a while), the page is downloaded. Completely.