in reply to Net::FTP

OK, i got it uploading using the following code:
print "Connected to Website\n"; $ftp->login($user,$password) or die ("cant Login"); $ftp->binary or die ("cant Binary"); $ftp->hash or die ("cant Hash"); $ftp->cwd("public_html") or die ("cant Change Dir"); $ftp->cwd("jobs") or die ("cant Change Dir2"); $ftp->put("temp.html") or die ("cant Upload"); $ftp->rename("temp.html", $wrname) or die ("Cant Rename"); print "File Uploaded"; $ftp->quit;
But now it adds a space to the end of the file, so the file for example is named "test.html " instead of "test.html"

Replies are listed 'Best First'.
Re: Re: Net::FTP
by Anonymous Monk on Jul 14, 2001 at 00:50 UTC
    see chomp to fix that problem