Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Net::FTP

by footbinc (Initiate)
on Jul 13, 2001 at 22:16 UTC ( [id://96509]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://96509]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-25 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found