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:

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();
Cheers!

In reply to Net::FTPSSL on Win32 not working as advertised by perlte58

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.