- 论坛徽章:
- 0
|
回复 4# bikong0411
使用这个模块时老是提示“Can't use an undefined value as a symbol reference at C:/Perl/lib/Net/FTP/dataconn.pm line 54.”登录的服务器时windows sever 2003系统,请问该怎么解决?
代码如下:
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;
在线等。。。 |
|