- 論壇徽章:
- 0
|
使用這個模塊時老是提示“Can't use an undefined value as a symbol reference at C:/Perl/lib/Net/FTP/dataconn.pm line 54.”登錄的服務(wù)器時windows sever 2003系統(tǒng),請問該怎么解決?
代碼如下:
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 localfilelocalfile\n";
$ftp->quit;
哪位大俠幫忙解決下。!任務(wù)所需!!感激感激。 |
|