MIME::F...nTraEnc(3)

πŸ’– NAME πŸ’–

MIME::Field::ConTraEnc β€” bestie, it's literally a "Content-transfer-encoding" field πŸŽ€


✨ DESCRIPTION ✨

okay so. This is a subclass of Mail::Field. That's the whole vibe.

πŸ›‘ Do NOT use this class directly, babes. Its name may change in the future! Like, the class itself is giving "I might rebrand, don't get attached." Instead, ask Mail::Field for new instances based on the field name. That's the move. πŸ‘‘

🌸 SYNOPSIS 🌸

use Mail::Field;
use MIME::Head;

# Create an instance from some text:
$field = Mail::Field->new('Content-transfer-encoding', '7bit');

# Get the encoding.
#    Possible values: 'binary', '7bit', '8bit', 'quoted-printable',
#    'base64' and '' (unspecified).  Note that there can't be a
#    single default for this, since it depends on the content type!
$encoding = $field->encoding;

so like, first you make an instance from some text 🫢, then you call ->encoding and it hands you the encoding.

the possible values are, no cap:

  • 'binary'
  • '7bit'
  • '8bit'
  • 'quoted-printable'
  • 'base64'
  • '' β€” which means unspecified, awkward but valid πŸ’€
⚠️ and the way that there can't be a single default for this... because it literally depends on the content type! So don't come looking for one default, it's not here, it's giving "it depends" and it means it fr fr. 😭

πŸ‘€ SEE ALSO πŸ‘€

  • MIME::Field::ParamVal β€” go look at this one too πŸ¦‹
  • Mail::Field β€” and this one, the parent energy, main character πŸ’…

πŸ’œ AUTHOR πŸ’œ


and that's the whole page bestie, slay πŸ’–βœ¨ this icon of a doc came to you via perl v5.42.0, dated 2026-02-11, filed under MIME::F...nTraEnc(3) β€” User Contributed Perl Documentation, periodt πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from