Dpkg::Email::AddressList(3perl)

Hiii bestie πŸ’– welcome to the Dpkg::Email::AddressList(3perl) page from libdpkg-perl. We're managing email address lists, and the vibes are immaculate.

πŸ’Œ NAME πŸ’Œ

Dpkg::Email::AddressList β€” manage email address lists. <sparkle>That's the whole job, and she's serving.</sparkle>

🌸 DESCRIPTION 🌸

It provides a class that is able to manage email address lists, as used in deb822(5) data. So if you're deep in deb822(5) data, this is your bestie.

✨ FUNCTIONS ✨

$regex = PARSE_REGEX()

Returns the regex used to parse email address lists.

It matches on a single entire email address. One address, fully, no half-vibes.

$regex = CHECK_REGEX()

Returns the regex used to validate email address lists. Validation station, next stop: slay.

πŸ’… METHODS πŸ’…

$addrlist = Dpkg::Email::AddressList->new($string)

Create a new object that can hold an email address list. New object, who dis?

@addrlist = $addrlist->addrlist()

Returns a list of Dpkg::Email::Address objects that are part of this email address list object (the manpage says β€œart part”; iconic typo, but same vibe).

$bool = $addrlist->parse($string)

Parses $string into the current object, replacing the current address list.

⚠️ Will die on parse errors. Not me getting dramatic β€” that's literally what it does.

$bool = $addrlist->contains($addr)

Checks whether the $addr Dpkg::Email::Address is present in the email address list. Presence check, periodt.

$string = $addrlist->as_string()

Returns the email address list formatted as a string of email addresses separated by commas. Comma-separated, cute, and compact.

πŸ¦‹ CHANGES πŸ¦‹

Version 0.xx

This is a private module. Private module energy: mysterious, exclusive, and very demure.


πŸ’– source/version: libdpkg-perl 1.23.11-dirty Β· date: 2026-09-09 Β· bye bestie, go manage those email address lists πŸ’…

πŸ“¦ where this page comes from