in reply to Re^2: Read part of a file over FTP
in thread Read part of a file over FTP

Note, for the above code, that I have tried the following things to close the retr():
$ftp->close(); $xfr->close();
But no joy. I'm just stabbing in the dark, though, so that's not really surprising.

Replies are listed 'Best First'.
Re^4: Read part of a file over FTP
by BrowserUk (Patriarch) on May 27, 2011 at 19:41 UTC

    Use $xfr->abort; to abort the retr, and $ftp->quit to close the connection.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^4: Read part of a file over FTP
by ronin78 (Novice) on May 27, 2011 at 19:52 UTC
    Fantastic! Sorry if my questions are noobish, and thanks very much for the help.

    Matt