I am using $ftp->put to upload file to ftp server but it is not working...
Here's the script
my $ftp = Net::FTP->new("ftp.mydomain.com") or die "INFO: Cann't connect: [email protected]\n";
$ftp->login("login","xyzx") or die "INFO: Couldn't login\n";
$ftp->cwd("/dir/myarea") or die "INFO: Couldn't change directory to \"/dir/myarea"\n";
$ftp->put("hehe.txt") or die "WHAAAAAAAAT THE HELL";
If you found something useful today, please consider a small donation.
Got something to add? Send me email.
More Articles by anonymous © 2009-11-07 anonymous