Are you sure you didn't code it as:
Encryption => 'EXP_CRYPT',
or
Encryption => "EXP_CRYPT",
Looking at the module's source, I think it needs to be a bareword
Encryption => EXP_CRYPT (ie no quotes).
And the error message you've supplied is consistent with
EXP_CRYPT having been quoted, and inconsistent with
EXP_CRYPT having been unquoted.
The error arises from this check in FTPSSL.pm:
return _croak_or_return (undef, $die, $dbg_flg,
"Encryption mode unknown! ($encrypt_mode)"
+)
if ( $encrypt_mode ne IMP_CRYPT && $encrypt_mode ne EXP_CRYPT &&
$encrypt_mode ne CLR_CRYPT );
Near the beginning of FTPSSL.pm we have:
use constant EXP_CRYPT => "E";
Therefore, if FTPSSL.pm's $encrypt_mode has been assigned as you intend, it should have been set to
E, not
EXP_CRYPT as the error reports.
At least that's the way it looks to me.
Cheers,
Rob
UPDATE: Alternatively, it might be that you haven't imported
EXP_CRYPT - in which case that could be fixed by specifying:
Encryption => Net::FTPSSL::EXP_CRYPT,
Without seeing more of your code, it's hard to know for sure.
(Also fixed typos in my initial post.)
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.