Gorby has asked for the wisdom of the Perl Monks concerning the following question:

Hello Wise Monks,

I have been using my perl program with the Net::FTP module for a few years to upload files to my ftp server. Now, all of a sudden it doesn't work. I didn't change anything. What could be going on? When I use thd DOS ftp service, or any other FTP client, it works. I'm so frustrated. Is there a new version of Net::FTP that I need to install on my windows computer? Hope you can help. Thanks in advance.

Gorby

Replies are listed 'Best First'.
Re: Any Known Problems with Net::FTP
by RMGir (Prior) on Jul 14, 2007 at 11:12 UTC
    Gorby,

    Whenever I've had problems like that with Net::FTP, it's usually been because a firewall rule or the server type changed, either on my side or the client's, and all of a sudden only passive (or only active) mode works.

    If you were using Passive=>1, switch to 0. If you weren't, switch to Passive=>1.

    I hope this helps -- if it doesn't, Debug mode will definitely help you sort it out.


    Mike
      This solved it! Thank you Wise Monks! Gorby
Re: Any Known Problems with Net::FTP
by wfsp (Abbot) on Jul 14, 2007 at 10:23 UTC
Re: Any Known Problems with Net::FTP
by Cody Pendant (Prior) on Jul 14, 2007 at 10:25 UTC
    Turn on Debug (set Debug => 1 in your new()), run your script, come back and tell us what it says.


    Nobody says perl looks like line-noise any more
    kids today don't know what line-noise IS ...