perlte58 has asked for the wisdom of the Perl Monks concerning the following question:
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();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FPPSSL on Win32 not working as advertised
by syphilis (Archbishop) on Oct 04, 2010 at 09:32 UTC | |
by perlte58 (Initiate) on Oct 04, 2010 at 23:53 UTC | |
|
Re: Net::FPPSSL on Win32 not working as advertised
by sanju7 (Acolyte) on Oct 04, 2010 at 03:36 UTC |