Hi!
I have tried to use FTP from Perl, 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 4."
The part of the perl script that caused this error is:
1.#!/usr/bin/perl -w
2. use Net::FTP;
3.
4. $ftp = Net::FTP->new("Host", Debug => 0)
5. or die "Cannot connect to host: $@";
I use Windows XP SP2 and ActiveState Perl 5.8.7. Can anybody help with this? The FTP server on machine "host" is up and running, using command line I can FTP without problem.
I have tried to use FTP from Perl, 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 4."
The part of the perl script that caused this error is:
1.#!/usr/bin/perl -w
2. use Net::FTP;
3.
4. $ftp = Net::FTP->new("Host", Debug => 0)
5. or die "Cannot connect to host: $@";
I use Windows XP SP2 and ActiveState Perl 5.8.7. Can anybody help with this? The FTP server on machine "host" is up and running, using command line I can FTP without problem.