Decode base64 text using perl from the command line

I recently ran into an issue where I needed to decode some base64 text from the command line and used perl to manage the task:

perl -MMIME::Base64 -ne 'print decode_base64($_)' < /tmp/input.txt

RE: http://perldoc.perl.org/MIME/Base64.html

Leave a Reply

Your email address will not be published. Required fields are marked *