Joseph Herlant
version 1.0.0, 2013-10-24 : Initial version
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"",<>'