in reply to Re: Perl Net::FTP put() gives little help on errors
in thread Perl Net::FTP put() gives little help on errors

Even when checking for errors like having if (! $ftp->put("build.zip")) and getting $ftp_message, the $ftp_message is still empty!

note, on the cmd window, I am seeing this
Net::FTP: Unexpected EOF on command channel at C:/Perl/lib/Net/FTP/dataconn.pm line 73
so question if why is $ftp->message empty?

Replies are listed 'Best First'.
Re^3: Perl Net::FTP put() gives little help on errors
by cdarke (Prior) on Jan 07, 2010 at 10:40 UTC
    A guess here, I found this comment in my version of C:/Perl/lib/Net/FTP/dataconn ($VERSION=0.11) in the abort function.
    # for some reason if we continously open RETR connections and not # read a single byte, then abort them after a while the server will # close our connection, this prevents the unexpected EOF on the # command channel -- GMB
    In this case the code aborts - it does not appear to update the error message.