Hello.

It is not a question about BASE64
My ISP want me to use "SSL / TLS port 465" or "MD5 port 587".
I started with MD5 port 587.

Question 1
========
/usr/lib/perl5 contains 3 different perl installations :
/usr/lib/perl5/5.18.2
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl

When calling a perl module/function which version is in use ?

Question 2
========
I use this command
Code:
perl -MMIME::Base64 -e 'print encode_base64("some_user");'
to get a base64 encoded user name or user password.

I would like to use this command
Code:
perl -MXXXXXX::YYYYYY -e 'print ZZZZZZZ("some_user");'
to get a md5 encoded user name or user password.
I have tried different command flavor with no success.
Code:
     ~> perl -MDigest::MD5 -e 'print encode_base64("some_user");'
Undefined subroutine &main::encode_base64 called at -e line 1.

~> perl -MDigest::MD5 -e 'print md5_base64("some_user");'
Undefined subroutine &main::md5_base64 called at -e line 1.

~> perl -MDigest::MD5 -e 'print hmac_md5("some_user");'
Undefined subroutine &main::hmac_md5 called at -e line 1.

~> perl -MDigest::HMAC_MD5 -e 'print hmac_md5("some_user");'
Undefined subroutine &main::hmac_md5 called at -e line 1.

~> perl -MDigest::MD5 -e 'print md5_base64("some_user");'
Undefined subroutine &main::md5_base64 called at -e line 1.

~> perl -MDigest::MD5 -e 'print hmac_md5("some_user");'
Undefined subroutine &main::hmac_md5 called at -e line 1.

~> perl -MDigest::MD5 -e 'print md5("some_user");'
Undefined subroutine &main::md5 called at -e line 1.

Code:
    ~> perl -e 'use HMAC_MD5;'
Can't locate HMAC_MD5.pm in @INC (you may need to install the HMAC_MD5 module) (@INC contains: /usr/lib/perl5/site_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Code:
~> perl -e 'use MD5;'
Can't locate MD5.pm in @INC (you may need to install the MD5 module) (@INC contains: /usr/lib/perl5/site_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
But HMAC_MD5.pm is in "/usr/lib/perl5/vendor_perl/5.18.2/Digest"
and MD5.pm is in "/usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/Digest" or in "/usr/lib/perl5/5.18.2/x86_64-linux-thread-multi/Digest"

Any help is welcome