in reply to Net::FTP::Recursive problems, prematurely closing connection

bowei_99:

Why would you think there's a networking issue? The error message clearly states that a data value isn't present. You may want to run your code under the debugger and monitor the variable(s) of interest at different locations of your program until you find where the error is.

By the way, I've not seen anyone use an asterisk in a hash key like that. What do you suppose that is doing? Amusing, I don't recall seeing people intentionally use the stringified reference for a hash key!

Finally, if your issue is that you don't know why the code is trying to close the connection, then it's not terribly helpful to see only the closing logic. By that point, the decision to close has *already been made*, and you're just showing us what's being executed after the incorrect decision.

Since you've added your code to your post, I looked it over, and I don't see any obvious problems. Are you running it directly from the command line? If not, perhaps a helpful error message is getting swallowed somewhere and not showing up.

Update: I've added the italicized bits after the OP added more code to his post.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Net::FTP::Recursive problems, prematurely closing connection

Replies are listed 'Best First'.
Re^2: Net::FTP::Recursive problems, prematurely closing connection
by tangent (Parson) on Dec 16, 2013 at 22:54 UTC
    I've not seen anyone use an asterisk in a hash key like that. What do you suppose that is doing?
    In fairness that code is from Net::FTP::dataconn.pm so I don't think that's the problem.