in reply to copy a file from ftp to clients hard drive

Please, change the values and test or just make sure
you have Debug turned on (working example):
use strict; use warnings; use diagnostics; use Net::FTP; my $file = 'npulse-0.53p2.tar.gz'; my $host = 'ftp.ttm.bg'; my $user = 'anonymous'; my $pass = '-anonymous@'; my $dir = 'pub/Linux/admin/'; my $ftp = Net::FTP->new($host, Debug => 1); $ftp->login($user,$pass); $ftp->cwd($dir); $ftp->get($file); $ftp->quit;


Replies are listed 'Best First'.
Re^2: copy a file from ftp to clients hard drive
by Doyle (Acolyte) on May 13, 2005 at 17:59 UTC
    After running the above code, this is the message I received.
    $BADREF = undef; process $BADREF 1,2,3; $BADREF->process(1,2,3); Uncaught exception from user code: Can't call method "login" on an undefined value at c:\Inetpub\domains\rvnuccio.com\doytest\cgi-bin\ftpPass.pl line 15 +.