I cant get my ftp to work. I keep getting error message such as:
[tt]
C:\Perl\bin>ftpr.pl
Can't call method "login" on an undefined value at C:\Perl\bin\ftpr.pl line 5.[/tt]
The script:
[tt]
use Net::FTP;
$ftp = Net::FTP->new("myserver@here.com", Debug => 0);
$ftp->login("myname","mypassword" || die "nope:$!\n"; $ftp->cwd("/usr/home/myname"
$ftp->get("test.txt"
$ftp->quit;[/tt]
The server I am trying to get the file from is behind a firewall.
I am on a NT workstation trying to get a file off a Solaris 7 server.
[tt]
C:\Perl\bin>ftpr.pl
Can't call method "login" on an undefined value at C:\Perl\bin\ftpr.pl line 5.[/tt]
The script:
[tt]
use Net::FTP;
$ftp = Net::FTP->new("myserver@here.com", Debug => 0);
$ftp->login("myname","mypassword" || die "nope:$!\n"; $ftp->cwd("/usr/home/myname"
$ftp->get("test.txt"
$ftp->quit;[/tt]
The server I am trying to get the file from is behind a firewall.
I am on a NT workstation trying to get a file off a Solaris 7 server.