Just trying to send an encrypted file via FTP SSLIs that the same as "SFTP" ? If so, Net::SSH2 will do the job - available via ppm:
ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd
I couldn't get anywhere with Net::FTPSSL trying to connect to an OpenSSH server on a local linux box using the script you provided (having modified the values appropriately) - though the same task is trivial with Net::SSH2.
Perhaps I simply didn't try hard enough.
Use of uninitialized value in subroutine entry at blib\lib\Net\SSLeay.pm That message doesn't make a lot of sense to me. After a module has been correctly installed there should be no need to go looking at anything in "blib" ... let alone that the module being looked at in blib is not even Net::FTPSSL. This smells strongly of a "botched install".
In addition, that "Run time error" you posted looks to me to be merely a warning (not an error at all) ... yet the script you posted doesn't even "use warnings;", so I'm not sure how that warning comes about. Are you sure that "myfile" didn't get uploaded ?
Cheers,
Rob
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.