"you could have installed MIME::Base64"

No need - it's come pre-installed with Perl since version 5.7.3, released over ten years ago.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

In reply to Re^2: tinkering with base64 encoding by tobyink
in thread tinkering with base64 encoding by temporal

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