in reply to Net::FTP and Ports
my $dir='/whatever'; use Net::FTP; my $ftp = Net::FTP->new("severname fqdn")|| die("Could not connect: $@ +\n"); $ftp->login("user","password")||die("Wrong username or password " ); $ftp->binary(); $ftp->cwd("$dir")||die("Could not change path "); #@aa=$ftp->ls("$dir"); $ftp->get("$file_name")|| die("File not found $file_name\n"); $ftp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Net::FTP and Ports
by kodo (Hermit) on Feb 06, 2004 at 11:36 UTC |