in reply to Re^2: "require MIME::Base64" vs "use..."
in thread "require MIME::Base64" vs. "use..."

Yes, and you could have used it anyway if you called it by its full package name:

#!/usr/bin/env perl use strict; use warnings; use 5.010; require MIME::Base64; my $x = MIME::Base64::encode_base64('abc'); say $x;
$ perl 1133493.pl $ YWJj $

Note the extra new line ... you will probably want to chomp what you get back from encode_base64 ....

Remember: Ne dederis in spiritu molere illegitimi!

Replies are listed 'Best First'.
Re^4: "require MIME::Base64" vs "use..."
by tel2 (Pilgrim) on Jul 07, 2015 at 08:56 UTC
    Well said, 1nickt!
    That's working for me, too.
    Thanks very much.
    chomp noted.