Hey Mates,
Ok, so like I said, I'm working on this script, I'm trying to transfer files between my servers and local machines. I'm not in doubt that this will be easily done, but I am having trouble testing my install of the module, and the documentation isn't helping.
THe code I'm using is this:
print "Content-type: text/html\n\n";
$host = "IP Address";
use Net::FTP;
$ftp = Net::FTP->new("$host", Debug => 0);
$ftp->login("name",'pass');
# $ftp->cwd("/pub"
# $ftp->get("that.file"
$ftp->ls("/home/path/dir"
$ftp->quit;
print "test";
I'm on a windows maching with this, local pc.
Ok, so after I did this and got passed the login errors I was getting I finally saw "test" on my screen, telling me the module installed ok, I think. So now I'm trying to get that
$ftp->ls("/home/path/dir"
Line to work, it says in the documentation that it stores it into an array or scalar, but I tried
print $_; and print @_; but they were undefined, so how can I get the out put from
$ftp->ls("/home/path/dir"
Thanks,
Tony