in reply to Net::FTP bug or is my error?

There's nothing in your code that immediately leaps out at me as being the cause. Had you shown your messages, that may have helped. Also, "it add some extra space" isn't all that useful: disk space? whitespace? how much extra? Furthermore, you included a lot of additional code (database, digest, options) that's irrelevant to the problem: this neither helps nor provides a script we can run to attempt to reproduce your problem.

Here's some things you can try:

Finally, and unrelated to your posted issue, instead of "loop: { ... goto loop }", consider:

while (1) { ... last unless @tree; }

-- Ken

Replies are listed 'Best First'.
Re^2: Net::FTP bug or is my error?
by Anonymous Monk on Aug 29, 2013 at 13:54 UTC

    I stripped down all unnecessary content and after a while fighting with the problem I realize that I have net::ftp module installed from Ubuntu repository, so, just in case I uninstalled and reinstalled from CPAN and problem solved, to be honest I did a lot of change but i'm pretty sure that was problem

    Thank you Ken for your response was really useful and I have changed the ugly goto logic to a more readable infinity while ;-)