in reply to Newbie: how evaluate files newer than an hour within ftp

In your loop, try calling $ftp->mdtm($file), and then compare that to the current time.