MIME::F...ContDisp(3)

πŸ’– MIME::F...ContDisp(3) πŸ’–

okay bestie, quick vibe check: this is the manual page for MIME::Field::ContDisp, straight out of the User Contributed Perl Documentation. yes it's giving very "3" in the title, that's just the man page convention being its usual self πŸŽ€


✨ NAME ✨

MIME::Field::ContDisp β€” a "Content-disposition" field πŸ¦‹

like, that's it. that's the whole name. it's the field, and it's about content disposition. slay.


🌸 DESCRIPTION 🌸

so MIME::Field::ContDisp is a subclass of Mail::Field. that's the whole family tree, no cap. 🌈

🚨 bestie, do NOT use this class directly … its name may literally change in the future! i'm not being dramatic, the docs said it first. πŸ’€

instead, the move is to ask Mail::Field for new instances based on the field name. that's the way. that's the assignment. periodt. πŸ’…


✨ SYNOPSIS ✨

here's the whole glow-up in code form, copy it exactly bestie:

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

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

# Inline or attachment?
$type = $field->type;

# Recommended filename?
$filename = $field->filename;

let's break down the main character moments 🫢

  • Mail::Field->new('Content-disposition', $text) β€” create an instance from some text, iconic behaviour, this is your entry point
  • $field->type β€” inline or attachment? this tells you which one it is, no guessing needed
  • $field->filename β€” the recommended filename, in case you were wondering what to call the thing 😭

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, they're the friends of the function fr fr:

  • MIME::Field::ParamVal
  • Mail::Field

πŸ‘‘ AUTHOR πŸ‘‘

the legends who made this happen:


and that's the page!! πŸŽ€ this was perl v5.42.0, dated 2026-02-11, and it's the MIME::F...ContDisp(3) manual page, mwah πŸ’‹ thanks for reading bestie, go write some immaculate Perl πŸ§šπŸ’œ

πŸ“¦ where this page comes from