- 論壇徽章:
- 0
|
回復(fù) 4# bikong0411
使用這個(gè)模塊時(shí)老是提示“Can't use an undefined value as a symbol reference at C:/Perl/lib/Net/FTP/dataconn.pm line 54.”登錄的服務(wù)器時(shí)windows sever 2003系統(tǒng),請(qǐng)問(wèn)該怎么解決?
代碼如下:
use Net::FTP;
$ftp = Net::FTP->new
(
"www.trcio.com",
Timeout => 60
) or die "Could not connect.\n";
$username = "read";
$password = "read";
$ftp->login($username,$password) or die "Could not login.\n";
$ftp->cwd('/g');
$remotefile = "use_warnings.txt";
$localfile = "use_wa.txt";
$ftp->get($remotefile,$localfile) or die "Could not put localfile localfile\n";
$ftp->quit;
在線等。。。 |
|