in reply to I Need to Use Net::FTP but its not working?

Hi Isaac.

First of all, if that's your real username/password CHANGE YOUR PASSWORD.

Second, the problem is most likely that the path your sending is wrong. I suggest doing the ftp manually, cd'ing into the directory you want and then doing pwd to find out what the real path is. Almost certainly it's not /n2212811/public_html/scripts (which would be hanging right off the the root), but probably something like /mnt/u2212/n2212811/public_html/scripts.

Also, you want to use $! in your die statements. $@ is for checking eval's. (my bad, see Fastolfe's comment below)

Good luck.

  • Comment on Re: I Need to Use Net::FTP but its not working?

Replies are listed 'Best First'.
Re: Re: I Need to Use Net::FTP but its not working?
by Fastolfe (Vicar) on Feb 04, 2001 at 20:18 UTC
    I think Net::FTP uses $@ for its error messages (whether that's good or bad is out of the scope of this post). $! would not make sense, as most of the errors you would get out of Net::FTP do not map to standardized system error messages/numbers, thus would be unsuitable for $!.