Dpkg::Email::Address(3perl)
πΈ NAME πΈ
Bestie, meet Dpkg::Email::Address β the libdpkg-perl class that manages an email address π (yes, the same kind of email address that shows up in deb822(5) data π).
β¨ DESCRIPTION β¨
Okay so picture this: it hands you a whole class whose entire main-character job is managing an email address π β specifically the kind that lives inside deb822(5) data. That's it, that's the vibe. Lowkey iconic π
.
π¦ FUNCTIONS π¦
$regex = REGEX()β gimme the regex, and it returns the regex that's used to parse and validate an email address π. Ngl, it matches two parts: the name and the email. Periodt.
π METHODS π
$addr = Dpkg::Email::Address->new($string)β creates a shiny new object that can hold an email address β¨. New object, who dis π«Ά.$name = $addr->name([$name])β gets the email address name, and if you pass$nameit also sets it π«. Returns the current name, or the new one if you just set it.$email = $addr->email([$email])β same energy, but for the email part of the email address π§. Gets it, optionally sets it with$email, and returns the current or new email.$bool = $addr->parse($string)β parses$stringstraight into the current object, replacing whatever address was already sitting there π. Heads up though: it will die on parse errors π β dramatic, but fair.$string = $addr->as_string()β returns the email address all formatted up as a string π. Glow-up complete.$hashref = $addr->as_struct()β returns the email address as a hashref withnameandemailkeys ποΈ. Struct-pilled.
π CHANGES π
β Version 0.xx
Bestie, real talk: this is a private module π. That's the whole changelog, no cap.
π that's the whole page, bestie π β brought to you by libdpkg-perl, version 1.23.11-dirty, dated 2026-09-09. Slay, go parse some emails πβ¨π
π¦ where this page comes from
- arch rolling: dpkg 1.23.11-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms