in reply to Problems with Loop

Marza's idea is a good one, send the output. Before you do, put a print before and after the login. If you program just appears to "hang", maybe Net::FTP waits a long time trying to connect.

HTH, --traveler