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


in reply to Newbie: need algorithm to evaluate no file exist

Hi,

As kennethk pointed, use a flag inside the loop and check itoutside and send mail according to the flag value.

Is there any specific reason to create @files array instead of using $ftp->ls directly in loop? Is it for @files reuse in the other parts of the code?

Regards,
Murugesan Kandasamy
use perl for(;;);