version 1.0.0, 2013-10-24 : Initial version
Encode and decode using quoted-printable in perl
One-liners to encode and decode input strings or text files using the "quoted-printable" (aka: qp) format.
Note
We are using the "MIME" Perl module here. As it is a core module,
it should normally be installed on every systems where perl is installed.
For more informations about this encoding, consult the dedicated Wikipedia page
1. Encoding
This sentence returns the qp encoded version of the input (from a file or a pipe.).
perl -MMIME::QuotedPrint=encode_qp -e 'print encode_qp join"",<>'
2. Decoding
This sentence returns the decoded version of a qp encoded input (from a file or a pipe.).
perl -MMIME::QuotedPrint=decode_qp -e 'print decode_qp join"",<>'