in reply to Re^3: Read part of a file over FTPin thread Read part of a file over FTP
Use $xfr->abort; to abort the retr, and $ftp->quit to close the connection.