Perl ver: Active State Perl 5.8.9
O/S: WindowsXP SP2
Issue: When using Net::FTPSSL get the following error? Is there another way to do the same thing, another module? Just trying to send an encrypted file via FTP SSL...
Run time error:
Use of uninitialized value in subroutine entry at blib\lib\Net\SSLeay.pm (autosplit into blib\lib\auto\Net\SSLeay\randomize.al) line 1944.
Code:
Cheers!use Net::FTPSSL; my $remote_server = '100.10.100.101'; my $port = 21; my $encryption = 'EXP_CRYPT'; my $login = 'mylogin'; my $passwd = 'mypasswd'; my $file = "myfile"; #------------- my $ftps = Net::FTPSSL->new($remote_server, Port => 21, Encryption => EXP_CRYPT, ) or die "Can not connect to $remote_serv +er"; $ftps->login($login,$passwd) or die "Can not log into $remote_serve +r: " . $ftps->last_message(); $ftps->put($file) or die "Can not put file $file on $remote_server: +" . $ftps->last_message(); $ftps->quit();
In reply to Net::FTPSSL on Win32 not working as advertised by perlte58
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |