MIME::QuotedPrint - encoded to quoted - printable format
The MIME::QuotedPrint module allows you to encode data in quoted-printable format.
# Loading modules and importing functions use MIME::QuotedPrint qw/encode_qp decode_qp/;
Use the encode_qp function to encode to quoted-printable format.
# Quoted-encoded to printable format my $qp_data = encode_qp $data;
Use the decode_qp function to decode quoted-printable format data.
# Decode data in quoted-printable format my $data = decode_qp $qp_data;
FAQ about MIME::QuotedPrint module
Q. What is the quoted-printable format in a nutshell?
A. It is a data format that uses printable characters (alphanumeric characters and equal sign "="). From a usage point of view, it is similar to the Base64 format (* 1). For example, since it is not possible to send characters other than 7-bit data by e-mail, it is converted to a string in the ASCII range in quoted-printable format.
If the input text is mostly alphanumeric, the quoted-printable format allows you to read the alphanumeric characters even after encoding, which improves size efficiency. On the contrary, when dealing with binary data and multibyte strings, the Base64 format is more size efficient.