I
Ivan L
I have tried to use FTP from Perl (not using System() but directly from perl script), and
found out that all the sample programs found on the Internet don't work. Further investigation showed
that there is following error
"Cannot connect to host: Net::FTP: Bad protocol 'tcp' at ftptest1.pl line 3."
The part of the perl script that caused this error is:
1.#!/usr/bin/perl -w
2. use Net::FTP;
3. $ftp = Net::FTP->new("Host", Debug => 0) or die "Cannot connect to host: $@";
I use Windows XP SP2 and ActiveState Perl 5.8.7. Also, I have tried to use Windows 2003
server, with the same result.
Can anybody help with this? The FTP server on machine "host" is up and running, using command
line I can FTP without problem.
found out that all the sample programs found on the Internet don't work. Further investigation showed
that there is following error
"Cannot connect to host: Net::FTP: Bad protocol 'tcp' at ftptest1.pl line 3."
The part of the perl script that caused this error is:
1.#!/usr/bin/perl -w
2. use Net::FTP;
3. $ftp = Net::FTP->new("Host", Debug => 0) or die "Cannot connect to host: $@";
I use Windows XP SP2 and ActiveState Perl 5.8.7. Also, I have tried to use Windows 2003
server, with the same result.
Can anybody help with this? The FTP server on machine "host" is up and running, using command
line I can FTP without problem.